Sha256: 840ee182646c9c8d900f8c486502a8ea70d51f3884ab83dfb9c6a880f46fe57f

Contents?: true

Size: 936 Bytes

Versions: 11

Compression:

Stored size: 936 Bytes

Contents

Feature: Spec::ExampleGroup with should methods

  As an RSpec adopter accustomed to classes and methods
  I want to use should_* methods in an ExampleGroup
  So that I use RSpec with classes and methods that look more like RSpec examples

  Scenario Outline: Example Group class with should methods
    Given a file named "example_group_with_should_methods.rb" with:
    """
    require 'rspec/autorun'
    require 'rspec/expectations'
    Rspec::Core::ExampleGroup.send(:include, Rspec::Matchers)

    class MySpec < Rspec::Core::ExampleGroup
      def should_pass_with_should
        1.should == 1
      end

      def should_fail_with_should
        1.should == 2
      end
    end
    """
    When I run "<Command> example_group_with_should_methods.rb"
    Then the exit code should be 256
    And the stdout should match "2 examples, 1 failure"

  Scenarios: Run with ruby and spec
    | Command |
    | ruby    |
    | spec    |

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.2 features-pending/example_groups/example_group_with_should_methods.feature
rspec-core-2.0.0.beta.1 features-pending/example_groups/example_group_with_should_methods.feature
rspec-core-2.0.0.a10 features-pending/example_groups/example_group_with_should_methods.feature
rspec-core-2.0.0.a9 features-pending/example_groups/example_group_with_should_methods.feature
rspec-core-2.0.0.a8 features-pending/example_groups/example_group_with_should_methods.feature
rspec-core-2.0.0.a7 features-pending/example_groups/example_group_with_should_methods.feature
rspec-core-2.0.0.a6 features-pending/example_groups/example_group_with_should_methods.feature
rspec-core-2.0.0.a5 features-pending/example_groups/example_group_with_should_methods.feature
rspec-core-2.0.0.a4 features-pending/example_groups/example_group_with_should_methods.feature
rspec-core-2.0.0.a3 features-pending/example_groups/example_group_with_should_methods.feature
rspec-core-2.0.0.a2 features-pending/example_groups/example_group_with_should_methods.feature