public
Rubygem
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/thoughtbot/shoulda.git
cleaned up the test names
tsaleh (author)
Thu Apr 24 07:11:13 -0700 2008
commit  833157cb8df6b559fe2c25b05d4a28e9dc883e31
tree    c64ec85ca0088d4448dcefebfd10da34055d9c60
parent  a277775e97ea547e3983f1c5dc00110e88d6613b
...
128
129
130
131
 
132
133
134
...
148
149
150
151
 
152
153
154
...
128
129
130
 
131
132
133
134
...
148
149
150
 
151
152
153
154
0
@@ -128,7 +128,7 @@ module ThoughtBot # :nodoc:
0
         message ||= /invalid/
0
         klass = model_class
0
         bad_values.each do |v|
0
- should "not allow #{attribute} to be set to \"#{v}\"" do
0
+ should "not allow #{attribute} to be set to #{v.inspect}" do
0
             assert object = klass.find(:first), "Can't find first #{klass}"
0
             object.send("#{attribute}=", v)
0
             assert !object.save, "Saved #{klass} with #{attribute} set to \"#{v}\""
0
@@ -148,7 +148,7 @@ module ThoughtBot # :nodoc:
0
         get_options!(good_values)
0
         klass = model_class
0
         good_values.each do |v|
0
- should "allow #{attribute} to be set to \"#{v}\"" do
0
+ should "allow #{attribute} to be set to #{v.inspect}" do
0
             assert object = klass.find(:first), "Can't find first #{klass}"
0
             object.send("#{attribute}=", v)
0
             object.save

Comments

    No one has commented yet.