Skip to content

Commit

Permalink
Use contain_exactly to test assignment of staging manager groups
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Nov 22, 2018
1 parent 17d9812 commit 8c4b549
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
it { expect(response).to redirect_to(edit_staging_workflow_path(subject)) }
it { expect(flash[:success]).not_to be_nil }
it 'assigns the managers group' do
expect(Staging::StagingProject.find_by_name('home:tom:Staging:C').groups.last).to eq(subject.managers_group)
expect(Staging::StagingProject.find_by_name('home:tom:Staging:C').groups).to contain_exactly(subject.managers_group)
end
end

Expand Down

0 comments on commit 8c4b549

Please sign in to comment.