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

Fix ruby 1.8.7 quirks #17

Merged
merged 1 commit into from
Sep 22, 2015
Merged

Fix ruby 1.8.7 quirks #17

merged 1 commit into from
Sep 22, 2015

Conversation

dobbymoodge
Copy link

type/acl.rb had a scoping/namespacing problem where a block parameter |perm| was used inside of a block with its own block parameter |perm|. Changed the inner param to |tmp_perm| fixed this for 1.8.7.

acl_spec.rb was comparing arrays using the eq matcher - which cares about array order - instead of the match_array matcher, which disregards order.

`type/acl.rb` had a scoping/namespacing problem where a block
parameter `|perm|` was used inside of a block with its own block
parameter `|perm|`. Changed the inner param to `|tmp_perm|` fixed this
for 1.8.7.

`acl_spec.rb` was comparing arrays using the `eq`[1] matcher - which
cares about array order - instead of the `match_array`[2] matcher,
which disregards order.

[1] - https://www.relishapp.com/rspec/rspec-expectations/v/3-3/docs/built-in-matchers/equality-matchers
[2] - https://www.relishapp.com/rspec/rspec-expectations/v/3-3/docs/built-in-matchers/contain-exactly-matcher
dobbymoodge added a commit that referenced this pull request Sep 22, 2015
@dobbymoodge dobbymoodge merged commit 408dad6 into master Sep 22, 2015
@dobbymoodge dobbymoodge deleted the ruby187_specfix branch February 7, 2017 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant