RSpec 2 is a version of the Behaviour-Driven Development tool for Ruby programmers.
I am trying to stub a method on a helper that is defined in my controller. For example: class ApplicationController &…
ruby-on-rails ruby-on-rails-3 rspec rspec2 rspec-railsThe before and after hook documentation on Relish only shows that before(:suite) is called prior to before(:all). When …
rspec rspec2Right now if I run my test suite using rake spec I get an error: 1) SegmentsController GET 'index' should work …
ruby ruby-on-rails-3 testing rspec rspec2How do you test redirect_to :back in rspec? I get ActionController::RedirectBackError: No HTTP_REFERER was set in the …
ruby-on-rails redirect rspec rspec2How can I specify #initialize behaviour with RSpec? For example here: generator.rb class Generator attr_accessor :seed def initialize(…
ruby rspec2I am creating bundler gem --test=rspec MyGem. in which I'm getting the repository structure. When I try to run …
ruby rspec rspec2 rspec-rails rspec3I'm trying to write a request test that asserts that the proper links appear on the application layout depending in …
devise integration-testing rspec2 factory-botI have an Invoice model that may contain a number of Items as well: class Invoice < ActiveRecord::Base attr_…
ruby-on-rails ruby-on-rails-3 rspec rspec2 factory-botHow do I turn off transactional fixtures for only one spec (or Steak scenario) with RSpec 2? I tried some things …
ruby-on-rails ruby-on-rails-3 rspec rspec2I am experiencing some baffling behavior in rspec and rspec-rails 2.11.0. I have reproduced the behavior on a co-worker's app running 2.7.1 (…
ruby-on-rails rspec2 rspec-rails