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