Sha256: 4c2a70c6087df4f32c85c8f9cb5a2503bcaea221e085c4cf7dffcc0b7e7b25c3
Contents?: true
Size: 751 Bytes
Versions: 32
Compression:
Stored size: 751 Bytes
Contents
Feature: mock with mocha As an RSpec user who prefers mocha I want to be able to use mocha without rspec mocks interfering Scenario: Mock with mocha Given a file named "mocha_example_spec.rb" with: """ Spec::Runner.configure do |config| config.mock_with :mocha end describe "plugging in mocha" do it "allows mocha to be used" do target = Object.new target.expects(:foo).once target.foo end it "does not include rspec mocks" do Spec.const_defined?(:Mocks).should be_false end end """ When I run "spec mocha_example_spec.rb" Then the exit code should be 0 And the stdout should include "2 examples, 0 failures"
Version data entries
32 entries across 32 versions & 11 rubygems