On Thursday, June 26, 2014 5:05:55 AM UTC-7, Roelof Wobben wrote:
>
> Hello, 
>
> I follow this tutorial to test my app : 
> http://everydayrails.com/2012/03/19/testing-series-rspec-models-factory-girl.html
> the only thing I do it different that I use my own app. 
>
> I did all the steps and at some point I have to do : rspec 
> spec/models/contributie_spec.rb 
>
> According to the page I have to see a lot of pending tests.
> But all  I see is this : 
>
> No examples found.
>
> Finished in 0.00028 seconds (files took 0.07798 seconds to load)
> 0 examples, 0 failures
>
> You can see what I have done here : https://github.com/roelof1967/finance
>
> Can anyone tell me what went wrong ?
>
> Roelof
>

spec/models/contributie_spec.rb is empty:

https://github.com/roelof1967/finance/blob/bda41a49323ecccd7d23801beea9d5a84dec6a06/spec/models/contributie_spec.rb

It looks like you tried to get it to work in spec/contributor_spec.rb:

https://github.com/roelof1967/finance/blob/bda41a49323ecccd7d23801beea9d5a84dec6a06/spec/contributie_spec.rb

...but you'll need to run `rspec spec/contributie_spec.rb` to run that spec 
file.  Or you can just run `rspec` and it'll run them all.

Note that for that second file you've got `contributie` (lower case) which 
ruby will treat as a local variable or method call (neither of which are 
defined in this context) so you'll get a `NameError`.  I think you want 
`Contributie` (note the capitol C), which is the constant you are 
describing there.

HTH,
Myron

-- 
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/msgid/rspec/33a68771-916f-41b7-b682-cda2ec3cf375%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to