I cannot manage to have shoulda working.
I'm using rvm with rails 3.1 and ruby 1.9.2
I added
group :test do
gem "shoulda"
end

to the Gemfile, and then run bundle install, thus the gem is installed,
and it is featured in the list running gem list --local.

but whenever I add something like
class ModelTest < Test::Unit::TestCase
should_not allow_value("blah").for(:email)
end
in a testfile, running that test with ruby -Itest
test/unit/model_test.rb
I get an error undefined method `allow_value' for ModelTest:Class
Am I missing something?
should I manually require shoulda? where and how?
thanks

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 15, '11 at 11:54a
activeOct 15, '11 at 11:54a
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Giulio mauro: 1 post

People

Translate

site design / logo © 2023 Grokbase