Sha256: 4c5fbfe9168dbc9288ba0d8553562b3ec954c3b6d6016b106f2dbb2041d75f2f
Contents?: true
Size: 591 Bytes
Versions: 5
Compression:
Stored size: 591 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 examples should all pass And the exit status should be 0
Version data entries
5 entries across 5 versions & 2 rubygems