Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We only care if the publishing role exists. #324

Merged
merged 1 commit into from
Sep 28, 2017

Conversation

bess
Copy link
Contributor

@bess bess commented Sep 28, 2017

I fixed this test to more narrowly check for whether the publishing role exists, regardless of whether any other role (e.g., "managing") also exists. I don't know why the managing role is sometimes but not always being created. We aren't using it, in any case, so I'm disinclined to spend time tracking that down.

Fixes #260

expect(role_names).to contain_exactly(
"publishing"
)
expect(role_names.include?("publishing")).to eq true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 there is also an include matcher we could use expect(role_names).to include('publishing'). That is equivalent to this, and I'm happy to merge as is when it's 💚.

@no-reply no-reply merged commit 25b43f2 into master Sep 28, 2017
@no-reply no-reply deleted the check_for_publishing_role branch September 28, 2017 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants