Sha256: fb45348ae774fe75d3330929904c36b7e09c3ee3ecedd5891aee1a5512fa93aa

Contents?: true

Size: 618 Bytes

Versions: 33

Compression:

Stored size: 618 Bytes

Contents

Feature: mock with rspec

  As an RSpec user who likes to mock
  I want to be able to use rspec

  Scenario: Mock with rspec
    Given a file named "rspec_example_spec.rb" with:
      """
      RSpec.configure do |config|
        config.mock_framework = :rspec
      end

      describe "plugging in rspec" do
        it "allows rspec to be used" do
          target = mock('target')
          target.should_receive(:foo)
          target.foo
        end
      end
      """
    When I run "rspec ./rspec_example_spec.rb"
    Then the output should contain "1 example, 0 failures" 
    And the exit status should be 0

Version data entries

33 entries across 33 versions & 3 rubygems

Version Path
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/rspec-core-2.1.0/features/mock_framework_integration/use_rspec.feature
rspec-core-2.4.0 features/mock_framework_integration/use_rspec.feature
vim-jar-0.1.2 bundler/ruby/1.8/gems/rspec-core-2.1.0/features/mock_framework_integration/use_rspec.feature
vim-jar-0.1.1 bundler/ruby/1.8/gems/rspec-core-2.1.0/features/mock_framework_integration/use_rspec.feature
vim-jar-0.1.0 bundler/ruby/1.8/gems/rspec-core-2.1.0/features/mock_framework_integration/use_rspec.feature
rspec-core-2.3.1 features/mock_framework_integration/use_rspec.feature
rspec-core-2.3.0 features/mock_framework_integration/use_rspec.feature
vim-jar-0.0.3 bundler/ruby/1.8/gems/rspec-core-2.1.0/features/mock_framework_integration/use_rspec.feature
rspec-core-2.2.1 features/mock_framework_integration/use_rspec.feature
vim-jar-0.0.2 bundler/ruby/1.8/gems/rspec-core-2.1.0/features/mock_framework_integration/use_rspec.feature
vim-jar-0.0.1 bundler/ruby/1.8/gems/rspec-core-2.1.0/features/mock_framework_integration/use_rspec.feature
rspec-core-2.2.0 features/mock_framework_integration/use_rspec.feature
rspec-core-2.1.0 features/mock_framework_integration/use_rspec.feature
rspec-core-2.0.1 features/mock_framework_integration/use_rspec.feature
gemrage-1.0.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/mock_framework_integration/use_rspec.feature
gemrage-0.4.1 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/mock_framework_integration/use_rspec.feature
gemrage-0.4.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/mock_framework_integration/use_rspec.feature
gemrage-0.3.2 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/mock_framework_integration/use_rspec.feature
gemrage-0.3.1 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/mock_framework_integration/use_rspec.feature
gemrage-0.3.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/features/mock_framework_integration/use_rspec.feature