Sha256: fde309faf85903a66990921fe68dc7b54cb81b64c3c82b9cca4f1820d72b53e7

Contents?: true

Size: 819 Bytes

Versions: 18

Compression:

Stored size: 819 Bytes

Contents

Feature: pattern option

  By default, RSpec loads files matching the pattern:

      "spec/**/*_spec.rb"

  Use the `--pattern` option to declare a different pattern.

  Scenario: default pattern
    Given a file named "spec/example_spec.rb" with:
      """ruby
      describe "addition" do
        it "adds things" do
          (1 + 2).should eq(3)
        end
      end
      """
    When I run `rspec`
    Then the output should contain "1 example, 0 failures"

  Scenario: override the default pattern on the command line
    Given a file named "spec/example.spec" with:
      """ruby
      describe "addition" do
        it "adds things" do
          (1 + 2).should eq(3)
        end
      end
      """
    When I run `rspec --pattern "spec/**/*.spec"`
    Then the output should contain "1 example, 0 failures"

Version data entries

18 entries across 18 versions & 6 rubygems

Version Path
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-core-2.13.0/features/command_line/pattern_option.feature
rspec-core-2.14.3 features/command_line/pattern_option.feature
rspec-core-2.14.2 features/command_line/pattern_option.feature
rspec-core-2.14.1 features/command_line/pattern_option.feature
rspec-core-2.14.0 features/command_line/pattern_option.feature
sshp-0.0.2 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/pattern_option.feature
sshp-0.0.1 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/pattern_option.feature
rspec-core-2.14.0.rc1 features/command_line/pattern_option.feature
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/pattern_option.feature
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/features/command_line/pattern_option.feature
vagrant-actionio-0.0.9 vendor/bundle/gems/rspec-core-2.13.0/features/command_line/pattern_option.feature
rspec-core-2.13.1 features/command_line/pattern_option.feature
rspec-core-2.13.0 features/command_line/pattern_option.feature
remq-0.0.4 vendor/bundle/gems/rspec-core-2.12.2/features/command_line/pattern_option.feature
remq-0.0.3 vendor/bundle/gems/rspec-core-2.12.2/features/command_line/pattern_option.feature
rspec-core-2.12.2 features/command_line/pattern_option.feature
rspec-core-2.12.1 features/command_line/pattern_option.feature
rspec-core-2.12.0 features/command_line/pattern_option.feature