I have a very small freshly made Rails 3 application. I am using the RubyCAS-Client gem for Rails to authenticate against our CAS server. The CAS client is working as I am able to log into and out of
I\'m currently working on a couple of different gems both of which mainly consist of rails view helpers.
My ApplicationController exposes a method (e.g. sort_direction) to the view templates by using helper_method :sort_direction. I then use this method in another method (e.g. sort_link) of a view helper
I would like to write some automatic tests for my Rails 3 application. I wonder how to start with that.
I\'m trying to write RSpec tests for my Sinatra application using Rack::Test. I can\'t understand how I can use cookies. For example if my 开发者_如何学Capplication set cookies (not via :session) how
I\'m doing some tests here using Rspec and I would like to assure that the controller is calling the log method in some actions. I\'m also using mocha.
I\'m writing a very AJAX-intensive application using Rails 3.0.4, and testing it with RSpec. Most of my controller actions just respond to a \"js\" format, ie:
I have a Photo model with the following method to search for associated tags by name: class Photo < ActiveRecord::Base
I have a rsepc test for my controller, in my test, I have the following code snippet: ... params= {SOME PARAMETERS}
Why does: User.stuff_to_extract = \'boo\' work in the rails c But in rspec it fails with this: Failure/Error: @user1.stuff_to_extract = \'XXXXXX\'