Sha256: 592115dfdb357d0707b320a5b1e475e466c361b3a1100838ce18098e8c56a342

Contents?: true

Size: 835 Bytes

Versions: 32

Compression:

Stored size: 835 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 'spec/autorun'

    class MySpec < Spec::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 include "2 examples, 1 failure"

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

Version data entries

32 entries across 32 versions & 11 rubygems

Version Path
rspec-instructure-1.3.3 features/example_groups/example_group_with_should_methods.feature
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/features/example_groups/example_group_with_should_methods.feature
rspec-1.3.2 features/example_groups/example_group_with_should_methods.feature
rspec-1.3.1 features/example_groups/example_group_with_should_methods.feature
rspec-1.3.1.rc features/example_groups/example_group_with_should_methods.feature
rspec-1.3.0 features/example_groups/example_group_with_should_methods.feature
hubbub-0.0.11 lib/vendor/plugins/rspec/features/example_groups/example_group_with_should_methods.feature
hubbub-0.0.10 lib/vendor/plugins/rspec/features/example_groups/example_group_with_should_methods.feature
hubbub-0.0.9 lib/vendor/plugins/rspec/features/example_groups/example_group_with_should_methods.feature
hubbub-0.0.8 lib/vendor/plugins/rspec/features/example_groups/example_group_with_should_methods.feature
hubbub-0.0.6 lib/vendor/plugins/rspec/features/example_groups/example_group_with_should_methods.feature
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/features/example_groups/example_group_with_should_methods.feature
media-path-0.1.2 vendor/rspec/features/example_groups/example_group_with_should_methods.feature
simple-templater-0.0.1.3 vendor/rspec/features/example_groups/example_group_with_should_methods.feature
pupu-0.0.2.pre vendor/rspec/features/example_groups/example_group_with_should_methods.feature
media-path-0.1.1.pre vendor/rspec/features/example_groups/example_group_with_should_methods.feature
simple-templater-0.0.1.2 vendor/rspec/features/example_groups/example_group_with_should_methods.feature
media-path-0.1.1 vendor/rspec/features/example_groups/example_group_with_should_methods.feature
simple-templater-0.0.1.1 vendor/rspec/features/example_groups/example_group_with_should_methods.feature
pupu-0.0.2 vendor/rspec/features/example_groups/example_group_with_should_methods.feature