Skip to content

support for its("@ivar") { should eq("some value") }

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

Created by: amatsuda

This patch enables its method to directly access to subject's instance variable. So this code:

subject { some_object.instance_variable_get('@key') }
it { should eq(value) }

becomes like this:

subject { some_object }
its('@key') { should eq(value) }

Thoughts?

Merge request reports