Top "Rspec2" questions

RSpec 2 is a version of the Behaviour-Driven Development tool for Ruby programmers.

How to load a spec_helper.rb automatically in RSpec 2

When developing gems in Ruby, I almost always need a file in which I can configure RSpec to my needs …

ruby rspec rspec2
How to ignore or skip a test method using RSpec?

please guide how to disable one of the below test methods using RSpec. I am using Selenuim WebDriver + RSpec combinations …

ruby rspec selenium-webdriver rspec2
Proper way to wait for a second page to load with Capybara when the first has the same field as the second

I'm having a problem with a spec that visits two forms with the same field ("Email") on both forms. If …

rspec capybara rspec2
Object.any_instance should_receive vs expect() to receive

The following piece of code works as expected: Object.any_instance.should_receive(:subscribe) But when using the new rspec …

rspec rspec2 rspec-rails
RSpec: describe, context, feature, scenario?

describe, context, feature, scenario: What is the difference(s) among the four and when do I use each one?

rspec rspec2 rspec-rails
Rspec: expect vs expect with block - what's the difference?

Just learning rspec syntax and I noticed that this code works: context "given a bad list of players" do let(:…

ruby tdd rspec2
How to mock request object for rspec helper tests?

I've a view helper method which generates a url by looking at request.domain and request.port_string. module ApplicationHelper …

ruby-on-rails ruby-on-rails-3 rspec rspec2 view-helpers
Rails - RSpec - Difference between "let" and "let!"

I have read what the RSpec manual says about the difference, but some things are still confusing. Every other source, …

ruby rspec rspec2
How to include Rails Helpers on RSpec

I'm trying to include some helpers to test with rspec but no luck. What I did: created a support/helpers.…

ruby-on-rails ruby-on-rails-3 rspec tdd rspec2
Testing STDOUT output in Rspec

I am trying to build a spec for this statement. It is easy with 'puts' print "'#{@file}' doesn't …

ruby rspec rspec2