Skip to content

Commit

Permalink
Fix specs.
Browse files Browse the repository at this point in the history
Signed-off-by: chatgris <jboyer@af83.com>
  • Loading branch information
chatgris committed Apr 9, 2012
1 parent 5654bbb commit 19e9565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/blabbr_core/domains/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
end

it 'should be able to create a user' do
BlabbrCore::User.new(admin).create(nickname: 'test user', email: 'email@mail.com').should be_true
BlabbrCore::User.new(admin).create(nickname: 'test user', email: 'email@mail.com', password: 'password').should be_true
end
end

Expand Down
1 change: 1 addition & 0 deletions spec/factories/blabbr_core/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
factory :user, class: BlabbrCore::Persistence::User do
nickname { Faker::Name.name }
email { Faker::Internet.email }
password 'password'

trait :admin do
roles [:admin]
Expand Down

0 comments on commit 19e9565

Please sign in to comment.