What is the subject of Rspecs its method
- by Steve Weet
When you use the its method in rspec like follows its(:code) { should eql(0)} what is 'its' referring to.
I have the following spec that works fine
describe AdminlwController do
shared_examples_for "valid status" do
it { should be_an_instance_of(Api::SoapStatus) }
it "should have a code of 0" do
subject.code.should eql(0)
…