Permalink
Browse files

Removed unused file.

The Macros module is also defined in spec_helper.rb.
  • Loading branch information...
1 parent fee8d4d commit c546573cf56b2aa9342894c43e7467c7fe2c1496 @myronmarston myronmarston committed Aug 31, 2010
Showing with 0 additions and 29 deletions.
  1. +0 −29 spec/support/macros.rb
View
@@ -1,29 +0,0 @@
-module Macros
- def treats_method_missing_as_private(options = {:noop => true, :subject => nil})
- it "has method_missing as private" do
- with_ruby 1.8 do
- described_class.private_instance_methods.should include("method_missing")
- end
- with_ruby 1.9 do
- described_class.private_instance_methods.should include(:method_missing)
- end
- end
-
- it "does not respond_to? method_missing (because it's private)" do
- formatter = options[:subject] || described_class.new({ }, StringIO.new)
- formatter.should_not respond_to(:method_missing)
- end
-
- if options[:noop]
- it "should respond_to? all messages" do
- formatter = described_class.new({ }, StringIO.new)
- formatter.should respond_to(:just_about_anything)
- end
-
- it "should respond_to? anything, when given the private flag" do
- formatter = described_class.new({ }, StringIO.new)
- formatter.respond_to?(:method_missing, true).should be_true
- end
- end
- end
-end

0 comments on commit c546573

Please sign in to comment.