test/models/authenticatable_test.rb in devise-2.1.3 vs test/models/authenticatable_test.rb in devise-2.1.4

- old
+ new

@@ -4,10 +4,10 @@ test 'required_fields should be an empty array' do assert_equal Devise::Models::Validatable.required_fields(User), [] end test 'find_first_by_auth_conditions allows custom filtering parameters' do - user = User.create!(email: "example@example.com", password: "123456") - assert_equal User.find_first_by_auth_conditions({ email: "example@example.com" }), user - assert_equal User.find_first_by_auth_conditions({ email: "example@example.com" }, id: user.id + 1), nil + user = User.create!(:email => "example@example.com", :password => "123456") + assert_equal User.find_first_by_auth_conditions({ :email => "example@example.com" }), user + assert_equal User.find_first_by_auth_conditions({ :email => "example@example.com" }, :id => user.id + 1), nil end end