I will cut the error message in two.
the minitest error message :
Warning: you should require 'minitest/autorun' instead.
Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
and the Rspec error message :
Failures:
1) Product is valid with a productname, description and a image_url
Failure/Error: expect(product).to be_valid
expected valid? to return true, got false
# ./spec/model/product_spec.rb:10:in `block (2 levels) in <top (required)>'
Roelof
Op dinsdag 9 december 2014 19:56:02 UTC+1 schreef Myron Marston:
> On Tuesday, December 9, 2014 9:16:38 AM UTC-8, Roelof Wobben wrote:
>>
>> I made this changes and still it fails.
>>
>> I also see this message :
>>
>>
>> Warning: you should require 'minitest/autorun' instead.
>>
>> Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
>>
>> Roelof
>>
>
> What is the failure message you get now? (It shouldn't be the same since
> it won't pass 3 arguments if you make my suggested change).
>
> As for the minitest thing: something in your environment is loading
> minitest. Without seeing your code it's impossible to guess what is
> loading it. Do you have it in your Gemfile? Or is there a `require
> "minitest"` anywhere in your code?
>
> While you can mix and match parts of RSpec with parts of minitest, RSpec's
> runner (rspec-core) isn't designed to work with minitest's runner (what you
> get when "minitest" is required rather than "minitest/assertions" or
> "minitest/mock").
>
> 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/549a07f3-495e-4c17-b3f2-c56b68159021%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.