Sha256: f7e8ec2b1d32c334b898724ec09fabff1434a1e314a9c5862ef06e7466fbe7fd

Contents?: true

Size: 473 Bytes

Versions: 30

Compression:

Stored size: 473 Bytes

Contents

$:.push File.join(File.dirname(__FILE__), *%w[.. .. .. lib])
require "rubygems"
require 'spec'

Spec::Runner.configure do |config|
  config.mock_with :flexmock
end

# This is to ensure that requiring spec/mocks/framework doesn't interfere w/ flexmock
require 'spec/mocks/framework'

describe "something" do
  it "should receive some message" do
    target = Object.new
    flexmock(target).should_receive(:foo).once
    lambda {flexmock_verify}.should raise_error
  end
end

Version data entries

30 entries across 30 versions & 8 rubygems

Version Path
dchelimsky-rspec-1.1.10 stories/resources/spec/spec_with_flexmock.rb
dchelimsky-rspec-1.1.11.1 stories/resources/spec/spec_with_flexmock.rb
dchelimsky-rspec-1.1.11 stories/resources/spec/spec_with_flexmock.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/stories/resources/spec/spec_with_flexmock.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/stories/resources/spec/spec_with_flexmock.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/stories/resources/spec/spec_with_flexmock.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/stories/resources/spec/spec_with_flexmock.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/spec/spec_with_flexmock.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/spec/spec_with_flexmock.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/spec/spec_with_flexmock.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/spec/spec_with_flexmock.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/spec/spec_with_flexmock.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/spec/spec_with_flexmock.rb
mack-0.8.2 lib/gems/rspec-1.1.11/stories/resources/spec/spec_with_flexmock.rb
pictrails-0.5.0 vendor/plugins/rspec/stories/resources/spec/spec_with_flexmock.rb
rspec-0.0.10 stories/resources/spec/spec_with_flexmock.rb
rspec-1.1.10 stories/resources/spec/spec_with_flexmock.rb
rspec-1.1.5 stories/resources/spec/spec_with_flexmock.rb
rspec-1.1.7 stories/resources/spec/spec_with_flexmock.rb
rspec-1.1.11 stories/resources/spec/spec_with_flexmock.rb