Sha256: 223eee841b5604043fa8ef3c373e7fa71da27638fbef73fbc7264607218990a1

Contents?: true

Size: 721 Bytes

Versions: 32

Compression:

Stored size: 721 Bytes

Contents

Feature: spec helper
  In order to centralize code needed across most specs
  As a spec author
  I want to require 'spec_helper'
  
  Because rspec adds the PROJECT_ROOT/spec directory to the load path, we can
  just require 'spec_helper' and it will be found.

  Scenario: spec helper
    Given a directory named "spec"
    And a file named "spec/spec_helper.rb" with:
      """
      SOME_CONSTANT = 'some value'
      """
    And a file named "example.rb" with:
      """
      require 'spec_helper'
      describe SOME_CONSTANT do
        it { should == 'some value' }
      end
      """
    When I run "spec example.rb"
    And  the stdout should include "1 example, 0 failures"
    And  the exit code should be 0

Version data entries

32 entries across 32 versions & 11 rubygems

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