How do you test redirect_to :back in rspec? I get ActionController::RedirectBackError: No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully.
I have a helper method called current_user in my Application Controller (used with Authlogic). Spec for views using that helper fail (but the view is working when i use the browser)
I recently start using JRuby in my Rails 2.3 webapp. Since then, I have been experiencing slowness in my rspec tests... the test are taking too long to run since I switched to JRuby.
I\'ve been spinning around this for the a few hours now without any luck finding a reference to the problem...
Here\'s my config.ru $:.unshift File.join(File.expand_path(File.dirname(__FILE__)), \'config\') require \'boot\'
I have a weird problem where I know the code works, the RSpec test will pass if I run that Spec file by itself, but it fails when I run all the tests in the entire suite (everything in /specs).
I have 2 factories. Beta_user and Beta_invite. Basically before a Beta_user can validly save I have to create an entry of Beta_invite. Unfortunately these models don\'t have clean associations, but th
I am using Spork to speed up my RSpec tests. Unfortunately my application_controller.rb gets not reloaded on开发者_开发知识库 each run so that I have to restart Spork when modifying it. Is there a way
Currently doing the Ruby On Rails Tutorial by Michael Hartl, and am starting on test-driven development. The tutorial demands that tests be written to ensure that the right titles are present on our h
I\'m iterating through a tree control on a webpage. Clicking on some nodes in the tree will change the content in FRAME_C, clicking on others will not. How do I filter a test to only run when the cont