Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove misleading feature

  • Loading branch information...
commit 4397a5ac07dbed2e7690ae9626d8d82f54ae7056 1 parent b599a42
@dchelimsky dchelimsky authored
View
28 features/mocks/mix_stubs_and_mocks.feature
@@ -1,28 +0,0 @@
-Feature: Spec and test together
-
- As an RSpec user
- I want to use stubs and mocks together
-
- Scenario: stub in before
- Given a file named "stub_and_mocks_spec.rb" with:
- """
- require 'rspec/expectations'
-
- RSpec.configure do |config|
- config.mock_framework = :rspec
- end
-
- describe "a stub in before" do
- before(:each) do
- @messenger = double('messenger').as_null_object
- end
-
- it "a" do
- @messenger.should_receive(:foo).with('first')
- @messenger.foo('second')
- @messenger.foo('third')
- end
- end
- """
- When I run "rspec ./stub_and_mocks_spec.rb -fs"
- Then the output should contain "received :foo with unexpected arguments"
View
2  spec/rspec/mocks/bug_report_957_spec.rb
@@ -1,6 +1,6 @@
require 'spec_helper'
-module Spec
+module RSpec
module Mocks
describe "stubbing a base class class method" do
before do
Please sign in to comment.
Something went wrong with that request. Please try again.