Top "Rspec2" questions

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

before hook in rspec same as before :all?

I am wondering whether the before (as seen below) is the same as before :all in RSpec. Sometimes neither :each …

rspec rspec2 rspec-rails
Testing helpers in Rails 3 with Rspec 2 and Devise

My helper code looks like this (and works fine btw): module ProvidersHelper def call_to_review(provider) if user_signed_…

ruby-on-rails ruby-on-rails-3 devise rspec2
RSpec can't define singleton error when trying to mock gets and puts for Hash Elements

I have a Book Model which is a ruby script that assigns prices to certain predefined Book titles mentioned in …

hash io mocking rspec2 ruby-1.9.3
Skip an RSpec test case at runtime

I'm running RSpec tests against a website product that exists in several different markets. Each market has subtly different combinations …

testing rspec rspec2 functional-testing
RSpec: Flush table / destroy objects after each context

How do you delete the objects (in the database and in the memory) you created after each test AND after …

ruby-on-rails ruby rspec rspec2 rspec-rails
Testing ActiveAdmin with rspec

I am trying to get started in testing ActiveAdmin, in particular I need to test a member_action from one …

rspec rspec2 activeadmin rspec-rails