It seems that going forward 'its' is gonna be deprecated.
I would like to know what is the best way to replicate its behaviour.
For instance I have this:
context 'new article' do
subject(:article) { Article.new }
its(:for_magazine?) { should be_false }
its(:total_pages) { should == 1 }
its(:current_page_number) { should == 1 }
its(:has_next_page?) { should be_false }
end
if I change to somethig like
it { expect(article.for_magazine?).to be false }
it prints out 'new article' should be false
Which makes no sense
if I do
context "for magazine?" do
it …..
end
prints well but is very verbose
is there any other alternative?
--
You received this message because you are subscribed to the Google Groups
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/rspec/-/FaC8qhEzsWQJ.
For more options, visit https://groups.google.com/groups/opt_out.