Sha256: 390f188f6bb0e0e58aaf4f5b98f4707739f7b7b61eaa64e8eada7f810c881aa3
Contents?: true
Size: 749 Bytes
Versions: 6
Compression:
Stored size: 749 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 match "2 examples, 0 failures"
Version data entries
6 entries across 6 versions & 1 rubygems