I am new to using Shoulda and don\'t know where to begin. One of the things I want to be able to test is when I create a new record for a given Model, the controller is supposed to then create new re
I have posted this in other places but no response. Trying to get Shoulda working inside Test/Unit in Rails 3.0.3 (1.9.2). When I try to run the test (copied below), I get this error:
I am attempting to get RCov to work 开发者_StackOverflow社区with my RSpec and Shoulda test for a rails 3 app.It seems to work fine with my RSpec after using the Rake task below but all of the shoulda
when I run rspec spec/models result is OK. But when I use spork, every test where shoulda macros (like it { should validate_presence_of(:title) } is used FAILS with error like: undefined method \'val
While writing functional tests for a controller, I came across a scenario where I have a before_filter requesting some information from the database that one of my tests requires. I\'m using Factory_g
I\'m using Rails3 with rspec and shoulda. I have the below spec describe PagesController, \"on GET to show while logged off\" do
I\'m trying to upgrade my rails application to Rails3. When I run functional tests, I get a lot of NameError: uninitialized constant Test::Unit::AssertionFailedError errors. But unit tests and websit
I have one spec: require \'spec_helper\' # hmm... I need to include it here because if I include it inside describe block `method_missing` exception raises.
I have following models in my app: class Game < ActiveRecord::Base has_many :players has_many :villages, :through => :players
I\'m trying out \'shoulda\' on top of rspec (rails 3) with the following spec: require \'spec_helper\'