Sha256: 2fc444081f21deacd07615fae2792e11d904a396e2dd48c11274ad3f83d20264
Contents?: true
Size: 611 Bytes
Versions: 5
Compression:
Stored size: 611 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::Core.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 "spec mocha_example_spec.rb" Then the stdout should match "1 example, 0 failures" And the exit code should be 0
Version data entries
5 entries across 5 versions & 1 rubygems