Create only tha data you need #10

Open
andreareginato opened this Issue Oct 3, 2012 · 2 comments

Projects

None yet

3 participants

@andreareginato
Collaborator

Write your thoughts about the "create only the data you need" best practice.

@eladg
eladg commented Jan 9, 2016

@andreareginato It seems that have / have_at_least / have_at_most were deprecated.

From: http://rspec.info/blog/2013/11/rspec-2-99-and-3-0-betas-have-been-released/

rspec-expectations 2.99.0.beta1 - Full Changelog

Deprecations: Deprecate have, have_at_least and have_at_most. 
You can continue using those matchers through https://github.com/rspec/rspec-collection_matchers, 
or you can rewrite your expectations with something like expect(your_object.size).to eq(num). 
(Hugo Baraúna)

would suggest updating those examples...

@onebree
Contributor
onebree commented Jan 11, 2016

@eladg Feel free to submit a pull request with changes. It would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment