I\'m working on a rails project in which I use CanCan to authorize my resources. When a user is not signed in and tries to submit a \"talk\" (via an ajax form submission), CanCan correctly raises a 40
Is it necessary to use view spec even if I am using cucumber? I think cucumber takes care of the view and the flow.So is it required to use view spec?
I have a very basic Admin model: class Admin < ActiveRecord::Base has_secure_password 开发者_运维问答validates_uniqueness_of :email
I\'m using Rails 3.1 and I wanted to add some stubs and mocks to my specs but I get a NoMethodError: undefined method `stub_model\' for #<Class:0x007ff9c339bd80> (NoMethodError)
I am trying to create tests for nested resources in Rails. The relevant route definition is: resources :communities do
I\'m working through the upgrade to 3.1, and hit a snag. I have a model (using Mongoid) that is having it\'s \'link\' method overwritten by Rake, apparently.I\'m getting this message:
I started making a Rails 3.1 engine, and I\'m having a hard time testing it using rspec. First of all, if I run rails g integration_test whatever it creates a regular integration test in tests/integr
How should I spec this class FlagsController def like flag = current_user.flags.find_or_initialize_by_flaggable_type_and_flaggable_id(params[:like_type], params[:like_id])
I\'ve been working through the tutorials at railstutorial.org, and I was a little stumped by the author\'s code for section -- 6.2.1 Validating presence.
I have code in my model (RoR 3.0.x) that is more or less like this: class Message after_create :notify protected