Skip to content

Commit

Permalink
Merge pull request #7016 from jrafanie/dont_hardcode_userid
Browse files Browse the repository at this point in the history
Remove hardcoded user1 which conflicts with the factory.
  • Loading branch information
gtanzillo committed Mar 1, 2016
2 parents 2bb5cfb + 40463b7 commit a1caefd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/miq_widget_spec.rb
Expand Up @@ -224,7 +224,7 @@ def add_dashboard_for_user(db_name, userid, group)

role1 = FactoryGirl.create(:miq_user_role, :name => 'EvmRole-support')
group1 = FactoryGirl.create(:miq_group, :description => "EvmGroup-support", :miq_user_role => role1)
user1 = FactoryGirl.create(:user, :userid => 'user1', :miq_groups => [group1])
user1 = FactoryGirl.create(:user, :miq_groups => [group1])

@user2 = FactoryGirl.create(:user_admin)
@group2 = @user2.current_group
Expand Down

0 comments on commit a1caefd

Please sign in to comment.