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

wants to merge 3 commits into


None yet

1 participant


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.


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
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment