Right now my rpsec goes like this: describe Ability do before(:each) do end describe \'xxx\' do it \"should xxx\" do
I am having a problem with factory_girl. Here is the error with rspec. \"Failure/Error: customer = Factory(:customer, :name => nil)
I have the following to remove the spaces on a specific attribute. #before_validation :strip_whitespace
I know I should be testing validations, but I\'m learning so would like to know why my code doesn\'t work.
I have code in my model (RoR 3.0.x) that is more or less like this: class Message after_create :notify protected
How should I test a validation with a conditional like this: validates :age, :numericality => true, :if => :age?
I have a command line (NON-RAILS) application written in pure Ruby that I\'m driving out through Cucumber and RSpec.It follows the typical application hierarchy of lib, bin, spec, and feature director
I have the following test: it \"I can Sign Up with Facebook\" do visit new_user_registration_path click_link_or_button \'Sign up with Facebook\'
My tests look like this: <<< spec/models/user_shared.rb shared_examples_for \"a user\" do end <<< spec/models/worker_spec.rb
I want to check if a method was called exactly(n) times, but I still want that method to perform its original function. Consider a simple thumbnailing system that caches the thumbnail file and make su