Should Recipe and Postgres posted by Michael McDermott @ Wed, 05 Mar 2008...
Hello,I just tried the Shoulda Recipe (51) with Rails 2.0.2 and Postgres (8.1 on windows, 8.2 on Ubuntu) and I’m getting an error when I run the test.I’m using a new rails application and the dev and...
View ArticleShould Recipe and Postgres posted by Mike Clark @ Wed, 05 Mar 2008 21:01:50...
Hi Michael -What does your event_test.rb file look like?Mike
View ArticleShould Recipe and Postgres posted by Michael McDermott @ Thu, 06 Mar 2008...
Mike, Thanks for the reply.Here is all I have class EventTest < Test::Unit::TestCase should_require_attributes :name, :description,:image_location, :starts_at, :location, :capacity #...
View ArticleShould Recipe and Postgres posted by Mike Clark @ Thu, 06 Mar 2008 17:49:09...
That looks fine. The error seems to indicate that the test/unit library can’t be found. Can you run regular units, without using Shoulda at all?
View ArticleShould Recipe and Postgres posted by Michael McDermott @ Thu, 06 Mar 2008...
Mike,It didn’t run a regular test so I checked out AWDR2 to see what I was doing wrong in the regular test. Then I noticed: require File.dirname(__FILE__) + '/../test_helper' class EventTest <...
View ArticleShould Recipe and Postgres posted by Mike Clark @ Thu, 06 Mar 2008 21:53:22...
Ah! You’ll need the events.yml and registrations.yml test fixture files. I’ll update the recipe. You can grab those files from the code bundle.Thanks!
View ArticleShould Recipe and Postgres posted by Michael McDermott @ Fri, 07 Mar 2008...
Thanks I’ll give it a whirl.
View Article
More Pages to Explore .....