I was writing an rspec test for the 开发者_运维问答destroy action of my sessions controller (Authlogic 2.1.6). I can\'t puzzle out what method I should call, either on the user object or the session o
I\'m trying to test a scope I have that is based upon a chain of other scopes. (\"public_stream\" below).
How to assert the multiline string with RSpec? I\'ve something like below as expectation: it \"should generate the correct header for the xml file\" do
This is using RSpec2 - no matter what happens I seem to get the following error when an expectation is not matched. I\'m sure (though I cannot try for a while) in version 1 the following code would st
I\'ve followed the recommendation from the Devise github pages for this: http://github.com/plataformatec/devise/wiki/How-To:-Redirect-to-a-specific-page-on-successful-sign-in
I have a Rails 2.2 app that I\'m supporting and one thing that needs to be done before the开发者_StackOverflow中文版 app start is a small rake task to initialize and make sure the database is properly
I have a rails 2.3.8 app with rspec tests (not written by me, just trying to get them running).When I run \"rake spec\" I get this error:
I am working with FactoryGirl for the first time and have set up my tests for the following controlle开发者_如何转开发r code
I\'m using Rails 3 / factory_girl_rails / Rspec 2 and Ruby 1.8 I\'ve defined my factories this way: Factory.define :user do |u|
I use RSpec to test my lovely little web app. For integration tests I use Steak. When using Rails generators (yep, I know that this is not the Zen way of doing TDD) there are also some files in spec/r