Top "Rspec-rails" questions

rspec-rails is an extension of the RSpec testing framework that provides support for testing Ruby on Rails applications.

How to solve the "[BUG] Segmentation fault"?

I am using a Mac OS running Snow Leopard 10.6.8 and RVM 1.10.3, Ruby 1.9.3-p125, Ruby on Rails 3.2.2 and rspec-rails-2.8.1. I have …

ruby-on-rails ruby macos rspec rspec-rails
uninitialized constant Rspec

I created a new rails application and followed the installation instructions for rspec-rails here - https://github.com/rspec/rspec-rails …

rspec-rails
RSpec: What is the difference between a feature and a request spec?

What is the conceptual difference between Rspec's feature specs and request specs? From the feature spec docs: Feature specs are …

ruby-on-rails rspec rspec-rails
rspec not_to change from not behaving as expected

I 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
rails-rspec error cannot load such file -- rspec/core/formatters/progress_formatter

I've broken my rails-rspec. I switched to a different gemset to run a 3rd party test. When I returned to …

ruby-on-rails-4 rspec-rails
Testing controllers with Minitest

I'm trying to find examples of testing controllers with Minitest, but I've only found a couple and the just verify …

ruby-on-rails testing rspec rspec-rails minitest
How to examine rspec variables with pry debugger

I've seen some SO posts explaining how to use pry to step into rspec tests and been able to do …

ruby-on-rails debugging rspec rspec-rails pry
Rails 3 Tutorial Chapter 11 "Validation failed: Email has already been taken" error

My trouble arose in Chapter 11 of the Ruby on Rails Tutorial here. I was seeing this rspec error: Failure/Error: :…

ruby-on-rails ruby-on-rails-3 rspec rspec-rails railstutorial.org
Accessing controller instance variables from within an rspec controller spec

Shouldn't I be able to see instance variables which are created in a controller action from within my rspect tests? # /…

ruby-on-rails rspec rspec-rails
Sending custom headers through RSpec

Given my API consumers are required to send a customer HTTP header like this: # curl -H 'X-SomeHeader: 123' http://127.0.0.1:3000/api/…

ruby-on-rails ruby-on-rails-3 rspec rspec-rails