To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!More about adding a collaborator
mock with mocha
As an RSpec user who likes to mock
I want to be able to use mocha
- Mock with mocha
a file named "mocha_example_spec.rb" with:
RSpec.configure do |config| config.mock_framework = :mocha end describe "plugging in mocha" do it "allows mocha to be used" do target = Object.new target.expects(:foo).once target.foo end end
- I run "rspec ./mocha_example_spec.rb"
- the output should contain "1 example, 0 failures"
- the exit status should be 0
Last published over 6 years ago by dchelimsky.
RSpec Core settings