its([key]) fails for Hash subjects #264

Closed
wants to merge 3 commits into
from

Projects

None yet

1 participant

@Burgestrand
Contributor

subject.rb:#128 uses OpenStruct when the subject is a Hash and the its attribute is an array. However, OpenStruct is not in scope, causing the failure in my first commit. The fix: require 'ostruct'.

I added a failing feature, but it had some output differences in 1.9.2 vs 1.8.7 so I had to change the expected output in my last commit.

@Burgestrand
Contributor

require 'ostruct' to fix bug with its([key])

@timcharper timcharper pushed a commit to timcharper/rspec-core that referenced this pull request Aug 19, 2011
@Burgestrand @dchelimsky Burgestrand + dchelimsky require 'ostruct' to fix bug with its([key])
- Closes #264
c4ee67f
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment