fix spec in users_controller
This commit is contained in:
parent
f75bd6bc2e
commit
86ddc2561a
1 changed files with 1 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ describe UsersController do
|
||||||
it 'should allow user to change his language' do
|
it 'should allow user to change his language' do
|
||||||
user.language = 'en'
|
user.language = 'en'
|
||||||
user.save
|
user.save
|
||||||
|
old_language = user.language
|
||||||
put("update", :id => user.id, "user" => {"language" => "fr"})
|
put("update", :id => user.id, "user" => {"language" => "fr"})
|
||||||
user.reload
|
user.reload
|
||||||
user.language.should_not == old_language
|
user.language.should_not == old_language
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue