]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/spec/spec/runner/heckler_spec.rb
added RSpec and RSpec on Rails
[rails.git] / vendor / gems / rspec-1.1.2 / spec / spec / runner / heckler_spec.rb
diff --git a/vendor/gems/rspec-1.1.2/spec/spec/runner/heckler_spec.rb b/vendor/gems/rspec-1.1.2/spec/spec/runner/heckler_spec.rb
new file mode 100644 (file)
index 0000000..7cf6606
--- /dev/null
@@ -0,0 +1,13 @@
+require File.dirname(__FILE__) + '/../../spec_helper.rb'
+unless [/mswin/, /java/].detect{|p| p =~ RUBY_PLATFORM}
+  require 'spec/runner/heckle_runner'
+
+  describe "Heckler" do
+    it "should run examples on tests_pass?" do
+      options = Spec::Runner::Options.new(StringIO.new, StringIO.new)
+      options.should_receive(:run_examples).with().and_return(&options.method(:run_examples))
+      heckler = Spec::Runner::Heckler.new('Array', 'push', options)
+      heckler.tests_pass?
+    end
+  end
+end