public
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
Search Repo:
Fixed double printing of deferred statements when should_eventuallys are 
in nested contexts
rmm5t (author)
Fri Jun 27 16:51:17 -0700 2008
commit  5aed59248b6292be6dba3a928db5f73b24ae1213
tree    ed03dcdd998ceb1391423a0c20e797a497f177fa
parent  9f0c2e10ad03f4106934067d0066716ff7890cf9
...
216
217
218
219
220
221
222
...
216
217
218
 
219
220
221
0
@@ -216,7 +216,6 @@ module Thoughtbot
0
           test_name = [full_name, "should", "#{should[:name]}. "].flatten.join(' ')
0
           puts " * DEFERRED: " + test_name
0
         end
0
- subcontexts.each { |context| context.print_should_eventuallys }
0
       end
0
 
0
       def build
...
106
107
108
 
 
 
 
 
 
109
...
106
107
108
109
110
111
112
113
114
115
0
@@ -106,4 +106,10 @@ class ContextTest < Test::Unit::TestCase # :nodoc:
0
   context "context for testing should piggybacking" do
0
     should "call should_eventually as we are not passing a block"
0
   end
0
+
0
+ context "context" do
0
+ context "with nested subcontexts" do
0
+ should_eventually "only print this statement once for a should_eventually"
0
+ end
0
+ end
0
 end

Comments

    No one has commented yet.