adding all of botlist, initial add
[botlist.git] / openbotlist / WEB-INF / lib / ruby / rspec / spec / spec / runner / heckler_spec.rb
blob7cf6606ec676010563246ff5ad4813e4238d373d
1 require File.dirname(__FILE__) + '/../../spec_helper.rb'
2 unless [/mswin/, /java/].detect{|p| p =~ RUBY_PLATFORM}
3   require 'spec/runner/heckle_runner'
5   describe "Heckler" do
6     it "should run examples on tests_pass?" do
7       options = Spec::Runner::Options.new(StringIO.new, StringIO.new)
8       options.should_receive(:run_examples).with().and_return(&options.method(:run_examples))
9       heckler = Spec::Runner::Heckler.new('Array', 'push', options)
10       heckler.tests_pass?
11     end
12   end
13 end