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
small test name changes
tsaleh (author)
Sat Apr 26 14:14:23 -0700 2008
commit  2c975a161cb36e3b04d56a48c6341f54706758ba
tree    05f4f0a94ffe66e9ea02bbb2dc313e705e489daf
parent  816dbb061aac342e7f33bdba09a2e9792e8cb8c2
...
466
467
468
469
 
470
471
472
...
480
481
482
483
 
484
485
486
...
466
467
468
 
469
470
471
472
...
480
481
482
 
483
484
485
486
0
@@ -466,7 +466,7 @@ module ThoughtBot # :nodoc:
0
         get_options!(methods)
0
         klass = model_class
0
         methods.each do |method|
0
- should "respond to class method #{method}" do
0
+ should "respond to class method ##{method}" do
0
             assert_respond_to klass, method, "#{klass.name} does not have class method #{method}"
0
           end
0
         end
0
@@ -480,7 +480,7 @@ module ThoughtBot # :nodoc:
0
         get_options!(methods)
0
         klass = model_class
0
         methods.each do |method|
0
- should "respond to instance method #{method}" do
0
+ should "respond to instance method ##{method}" do
0
             assert_respond_to klass.new, method, "#{klass.name} does not have instance method #{method}"
0
           end
0
         end
...
373
374
375
376
 
377
378
379
...
386
387
388
389
 
390
391
392
...
373
374
375
 
376
377
378
379
...
386
387
388
 
389
390
391
392
0
@@ -373,7 +373,7 @@ module ThoughtBot # :nodoc:
0
         #
0
         # should_render_template :new
0
         def should_render_template(template)
0
- should "render '#{template}' template" do
0
+ should "render template #{template.inspect}" do
0
             assert_template template.to_s
0
           end
0
         end
0
@@ -386,7 +386,7 @@ module ThoughtBot # :nodoc:
0
         # should_redirect_to '"/"'
0
         # should_redirect_to "users_url(@user)"
0
         def should_redirect_to(url)
0
- should "redirect to \"#{url}\"" do
0
+ should "redirect to #{url.inspect}" do
0
             instantiate_variables_from_assigns do
0
               assert_redirected_to eval(url, self.send(:binding), __FILE__, __LINE__)
0
             end

Comments

    No one has commented yet.