Sha256: 4fb85d27da313629d7aef2d03fe4b96943962d6dba48fb052ac3c42ae376f7a5
Contents?: true
Size: 612 Bytes
Versions: 33
Compression:
Stored size: 612 Bytes
Contents
Feature: mock with mocha As an RSpec user who likes to mock I want to be able to use mocha Scenario: Mock with mocha Given 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 """ When I run "rspec ./mocha_example_spec.rb" Then the output should contain "1 example, 0 failures" And the exit status should be 0
Version data entries
33 entries across 33 versions & 3 rubygems