]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/rspec-1.1.2/plugins/mock_frameworks/rspec.rb
fix node relations bug (thanks Dave!)
[rails.git] / vendor / gems / rspec-1.1.2 / plugins / mock_frameworks / rspec.rb
1 require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "lib", "spec", "mocks"))
2
3 module Spec
4   module Plugins
5     module MockFramework
6       include Spec::Mocks::ExampleMethods
7       def setup_mocks_for_rspec
8         $rspec_mocks ||= Spec::Mocks::Space.new
9       end
10       def verify_mocks_for_rspec
11         $rspec_mocks.verify_all
12       end
13       def teardown_mocks_for_rspec
14         $rspec_mocks.reset_all
15       end
16     end
17   end
18 end