transitionally downgraded to Rails 4.1 since activerecord-jdbcpostgresql-adapter is not fully compatible with Active Record 4.2

This commit is contained in:
Hauke Klement
2015-03-02 15:04:37 +01:00
parent 03486bff35
commit 7477d4c6dd
17 changed files with 107 additions and 174 deletions

View File

@ -40,6 +40,8 @@ describe ApplicationController do
let(:locale) { :de }
context 'when specifying a locale' do
before(:each) { allow(session).to receive(:[]=).at_least(:once) }
context "using the 'custom_locale' parameter" do
it 'overwrites the session' do
expect(session).to receive(:[]=).with(:locale, locale.to_s)