-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
Eliminate more "multiple expectations" warnings and remove some redundant specs #601
Conversation
expect(policy[:definition]['ha-params']).to be_a(Array) | ||
expect(policy[:definition]['ha-params'][0]).to eq('rabbit@rabbit-01') | ||
expect(policy[:definition]['ha-params'][1]).to eq('rabbit@rabbit-02') | ||
context 'accepts list value in ha-params when ha-mode = nodes' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this works Ok here, but not sure if there's a better way to do it.
|
||
it do | ||
expect(policy[:definition]['ha-mode']).to eq('nodes') | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might be tempted to use a single line for each of these?
ie.
it { expect(policy[:definition]['ha-mode']).to eq('nodes') }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do. You think moving the outer bit to a context makes sense here though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, btw, if you want to re-review
7b0ebd4
to
4bf585c
Compare
Eliminate more "multiple expectations" warnings and remove some redundant specs
Eliminate more "multiple expectations" warnings and remove some redundant specs
Would appreciate feedback on this one.