Skip to content
This repository
Browse code

say silence when you mean silence

  • Loading branch information...
commit ead9e4e6267be4def4e83cf7fe1ea4197ddf4eff 1 parent c88dddb
Xavier Noria authored May 13, 2011
2  railties/test/generators/shared_generator_tests.rb
@@ -187,7 +187,7 @@ def test_builder_option_with_http
187 187
     template.instance_eval "def read; self; end" # Make the string respond to read
188 188
 
189 189
     generator([destination_root], :builder => path).expects(:open).with(path, 'Accept' => 'application/x-thor-template').returns(template)
190  
-    capture(:stdout) { generator.invoke_all }
  190
+    silence(:stdout) { generator.invoke_all }
191 191
 
192 192
     default_files.each{ |path| assert_no_file(path) }
193 193
   end

0 notes on commit ead9e4e

Please sign in to comment.
Something went wrong with that request. Please try again.