I need to create some integration tests without cucumber. Can anyone
point me in the right direction for how to do that in rails? I tried
creating specs under ‘spec/integration/’ but no matchers are being
included. I also tried rspec_integration plugin (http://github.com/
tricycle/rspec-integration) but that only defines a few matchers and
response.should be_success doesn’t work properly.
Any help you can provide would be much appreciated!
I need to create some integration tests without cucumber. Can anyone
point me in the right direction for how to do that in rails? I tried
creating specs under ‘spec/integration/’ but no matchers are being
included. I also tried rspec_integration plugin (http://github.com/
tricycle/rspec-integration) but that only defines a few matchers and
response.should be_success doesn’t work properly.
Any help you can provide would be much appreciated!
You should not need any magic to get rspec working.
In order to run integration specs I’ve been using a very simple
spec_helper.rb.
I need to create some integration tests without cucumber. Can anyone
point me in the right direction for how to do that in rails? I tried
creating specs under ‘spec/integration/’ but no matchers are being
included. I also tried rspec_integration plugin (http://github.com/
tricycle/rspec-integration) but that only defines a few matchers and
response.should be_success doesn’t work properly.
Any help you can provide would be much appreciated!
Let me start by saying thank you for the time you are spending helping
me.
It appears to be a rails version issue. I ran though the same steps
you outlined on my machine and continued to get the same error
message, “undefined method `be_success’”. I am running rspec 1.3.0,
rspec-rails 1.3.2, rails 2.3.4. When I upgraded to rails 2.3.5 and
tried again, everything worked.
The project I am working on is frozen at rails 2.1.2 so am still
looking for a way to get this to work with rails 2.1.2. Should I
downgrade to an earlier version of RSpec or spec-rails? If so, which
one?
So everything is working as it should on a fresh app. Did you update
spec/spec_helper.rb the last time you upgraded the app? Are you using
an earlier version of rspec-rails or rspec?
Let me start by saying thank you for the time you are spending helping
me.
You’re welcome.
It appears to be a rails version issue. I ran though the same steps
you outlined on my machine and continued to get the same error
message, “undefined method `be_success’”. I am running rspec 1.3.0,
rspec-rails 1.3.2, rails 2.3.4. When I upgraded to rails 2.3.5 and
tried again, everything worked.
The project I am working on is frozen at rails 2.1.2 so am still
looking for a way to get this to work with rails 2.1.2. Should I
downgrade to an earlier version of RSpec or spec-rails? If so, which
one?
1.3.2 is tested against the last fix release of each series: 2.3.5,
2.2.2, 2.1.2, 2.0.5. So it should work with 2.1.2. If not, it’s a bug,
so go ahead and file a bug report at http://rspec.lighthouseapp.com -
feel free to reference this thread.
Cheers,
David
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.