added RSpec and RSpec on Rails

This commit is contained in:
Xin Zheng 2008-01-22 16:39:09 +00:00
parent ddd5b4cf19
commit 3f607d565b
316 changed files with 23828 additions and 0 deletions

View file

@ -0,0 +1,18 @@
require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "lib", "spec", "mocks"))
module Spec
module Plugins
module MockFramework
include Spec::Mocks::ExampleMethods
def setup_mocks_for_rspec
$rspec_mocks ||= Spec::Mocks::Space.new
end
def verify_mocks_for_rspec
$rspec_mocks.verify_all
end
def teardown_mocks_for_rspec
$rspec_mocks.reset_all
end
end
end
end