Updated to latest rspec
[gitorious:georgyos-clone.git] / vendor / plugins / rspec / stories / resources / spec / spec_with_flexmock.rb
1 $:.push File.join(File.dirname(__FILE__), *%w[.. .. .. lib])
2 require "rubygems"
3 require 'spec'
4
5 Spec::Runner.configure do |config|
6   config.mock_with :flexmock
7 end
8
9 # This is to ensure that requiring spec/mocks/framework doesn't interfere w/ flexmock
10 require 'spec/mocks/framework'
11
12 describe "something" do
13   it "should receive some message" do
14     target = Object.new
15     flexmock(target).should_receive(:foo).once
16     lambda {flexmock_verify}.should raise_error
17   end
18 end