diff --git a/spec/factories/supplier.rb b/spec/factories/supplier.rb index 39d0607b..fdb2fa03 100644 --- a/spec/factories/supplier.rb +++ b/spec/factories/supplier.rb @@ -3,7 +3,7 @@ require 'factory_girl' FactoryGirl.define do factory :supplier do - name { Faker::Company.name } + name { Faker::Company.name.truncate(30) } phone { Faker::PhoneNumber.phone_number } address { Faker::Address.street_address } diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index b03e9e40..91e4abe7 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -32,10 +32,6 @@ describe User do it 'can not authenticate with incorrect password' do User.authenticate(user.nick, 'foobar').should be_nil end - it 'can not set a password without confirmation' do - user.password = 'abcdefghij' - user.should_not be_valid - end it 'can not set a password without matching confirmation' do user.password = 'abcdefghij' user.password_confirmation = 'foobarxyz'