changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/spec/spec/runner/heckler_spec.rb

changeset 15: 64acf98d15f4
author: moriq@moriq.com
date: Mon Mar 10 10:12:58 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec
1require File.dirname(__FILE__) + '/../../spec_helper.rb'
2unless [/mswin/, /java/].detect{|p| p =~ RUBY_PLATFORM}
3 require 'spec/runner/heckle_runner'
4
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
13end