Make tests compatible with rspec 3.x

* replace be_true with be_truthy
* replace double.stub(:message) with allow(double).to receive(:message)
* replace stub_chain with receive_message_chain
Parse ERB code in configuration file