Permalink
Browse files

Correct roles association name in user factory

  • Loading branch information...
radar committed May 30, 2012
1 parent 62f76a9 commit 1512ccb7ac50bef040e2b8cd4038d52477686478
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/lib/spree/core/testing_support/factories/user_factory.rb
@@ -12,6 +12,6 @@
end
factory :admin_user, :parent => :user do
- roles { [Spree::Role.find_by_name('admin') || FactoryGirl.create(:role, :name => 'admin')]}
+ spree_roles { [Spree::Role.find_by_name('admin') || FactoryGirl.create(:role, :name => 'admin')]}
end
end

0 comments on commit 1512ccb

Please sign in to comment.