Added Rspec and Webrat plugins and started porting Selenium on Rails tests to Rspec Plain Text Stories driving Webrat driving Selenium.

This commit is contained in:
Luke Melia 2008-06-18 02:57:57 -04:00
parent 0600756bbf
commit 0f7d6f7a1d
602 changed files with 47788 additions and 29 deletions

View file

@ -0,0 +1,25 @@
# stub frameworks like to gum up Object, so this is deliberately
# set NOT to run so that you don't accidentally run it when you
# run this dir.
# To run it, stand in this directory and say:
#
# RUN_MOCHA_EXAMPLE=true ruby ../bin/spec mocking_with_mocha.rb
if ENV['RUN_MOCHA_EXAMPLE']
Spec::Runner.configure do |config|
config.mock_with :mocha
end
describe "Mocha framework" do
it "should should be made available by saying config.mock_with :mocha" do
m = mock()
m.expects(:msg).with("arg")
m.msg
end
it "should should be made available by saying config.mock_with :mocha" do
o = Object.new
o.expects(:msg).with("arg")
o.msg
end
end
end