Top "Rspec-rails" questions

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

test a file upload using rspec - rails

I want to test a file upload in rails, but am not sure how to do this. Here is the …

ruby-on-rails file-upload tdd rspec-rails
How do I turn on SQL debug logging for ActiveRecord in RSpec tests?

I have some RSpec tests for my models and I would like to turn on SQL ActiveRecord logging just like …

ruby-on-rails ruby activerecord rspec-rails
Rails 3.1, RSpec: testing model validations

I have started my journey with TDD in Rails and have run into a small issue regarding tests for model …

ruby-on-rails ruby-on-rails-3 rspec rspec2 rspec-rails
Unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)

While testing scenario by cucumber i'm getting the following error when running rspec tests unable to obtain stable firefox connection …

ruby-on-rails cucumber capybara selenium-webdriver rspec-rails
How do I get an ENV variable set for rspec?

I'm using foreman to start up my rails development server. It's nice that I can put all of my environment …

ruby-on-rails testing rspec environment-variables rspec-rails
POSTing raw JSON data with Rails 3.2.11 and RSpec

In order to ensure that my application is not vulnerable to this exploit, I am trying to create a controller …

ruby-on-rails json ruby-on-rails-3.2 rspec2 rspec-rails
Factory-girl create that bypasses my model validation

I am using Factory Girl to create two instances in my model/unit test for a Group. I am testing …

ruby-on-rails ruby-on-rails-3 rspec factory-bot rspec-rails
How to include lib directory in rspec tests

I am having a problem in testing my gem which includes a lib directory, on JRuby 1.7.4. I want to test …

ruby testing rspec rspec-rails
ActionController::UrlGenerationError, No route matches

I've read through every similar question I could find and still can't figure out my problem. # routes.rb Rails.application.…

ruby-on-rails rspec-rails
Writing tests for a sidekiq worker

I am using the rspec-sidekiq gem (https://github.com/philostler/rspec-sidekiq) to help test a worker I am writing, but …

rspec rspec-rails sidekiq rspec-sidekiq