Use new "strong parameters" from rails4

This commit is contained in:
Thibault Jouan
2014-04-03 02:20:37 +00:00
parent 1b5055d0a6
commit 4c6adc6927
13 changed files with 41 additions and 23 deletions

View File

@@ -9,7 +9,6 @@ describe User do
it { should validate_presence_of :email }
it { should validate_presence_of :password }
it { should validate_presence_of :password_hash }
it { should_not allow_mass_assignment_of :password_hash }
context 'when a user with the same email address already exists' do
let(:old_user) { FactoryGirl.create(:user, email: 'unique@example.net') }