Skip to content

its([key]) fails for Hash subjects

gitlab-qa-bot requested to merge github/fork/Burgestrand/master into master

Created by: Burgestrand

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.

Merge request reports