Sha256: 88edf76d1cc47d50cb76aaa0534d2c4618943d6e11b901becb213e40bb3936eb

Contents?: true

Size: 646 Bytes

Versions: 12

Compression:

Stored size: 646 Bytes

Contents

if Spec::Ruby.version.to_f < 1.9
  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
        sub = Class.new(Spec::Runner::Heckler) do
          def initialize(klass_name, method_name, rspec_options)
            @rspec_options = rspec_options
          end
        end
        opts = mock('options')
        opts.should_receive(:run_examples).and_return(true)
        heckler = sub.new('klass','method',opts)
        heckler.tests_pass?
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
dchelimsky-rspec-1.1.99.13 spec/spec/runner/heckler_spec.rb
dchelimsky-rspec-1.1.99.8 spec/spec/runner/heckler_spec.rb
dchelimsky-rspec-1.1.99.9 spec/spec/runner/heckler_spec.rb
rspec-1.2.7 spec/spec/runner/heckler_spec.rb
rspec-1.2.8 spec/spec/runner/heckler_spec.rb
rspec-1.2.0 spec/spec/runner/heckler_spec.rb
rspec-1.2.1 spec/spec/runner/heckler_spec.rb
rspec-1.2.2 spec/spec/runner/heckler_spec.rb
rspec-1.2.4 spec/spec/runner/heckler_spec.rb
rspec-1.2.6 spec/spec/runner/heckler_spec.rb
rspec-1.2.3 spec/spec/runner/heckler_spec.rb
rspec-1.2.5 spec/spec/runner/heckler_spec.rb