fixed spec
This commit is contained in:
parent
296c53a685
commit
0906f21bdd
1 changed files with 2 additions and 1 deletions
|
|
@ -202,7 +202,8 @@ describe User do
|
|||
|
||||
it "should save with current language if blank" do
|
||||
I18n.locale = :fr
|
||||
user = Factory(:user, :language => nil)
|
||||
user = User.build(:username => 'max', :email => 'foo@bar.com', :password => 'password', :password_confirmation => 'password')
|
||||
user.save!
|
||||
user.language.should == 'fr'
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue