Sha256: b61b82ace7a70207f2cec6c607b2e08c2ae014b05767a90d86b93f47016aca50

Contents?: true

Size: 611 Bytes

Versions: 32

Compression:

Stored size: 611 Bytes

Contents

Feature: add ./lib to load path
  In order to ...
  As a spec author
  I want rspec to add ./lib to the load path

  Scenario: spec helper
    Given a directory named "spec"
    And a file named "example.rb" with:
      """
      describe $LOAD_PATH do
        it "begins with 'lib' in the current directory in the load path" do
          libdir = File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
          $LOAD_PATH.should include(libdir)
        end
      end
      """
    When I run "spec example.rb"
    Then 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/load_paths/add_lib_to_load_path.feature
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/features/load_paths/add_lib_to_load_path.feature
rspec-1.3.2 features/load_paths/add_lib_to_load_path.feature
rspec-1.3.1 features/load_paths/add_lib_to_load_path.feature
rspec-1.3.1.rc features/load_paths/add_lib_to_load_path.feature
rspec-1.3.0 features/load_paths/add_lib_to_load_path.feature
hubbub-0.0.11 lib/vendor/plugins/rspec/features/load_paths/add_lib_to_load_path.feature
hubbub-0.0.10 lib/vendor/plugins/rspec/features/load_paths/add_lib_to_load_path.feature
hubbub-0.0.9 lib/vendor/plugins/rspec/features/load_paths/add_lib_to_load_path.feature
hubbub-0.0.8 lib/vendor/plugins/rspec/features/load_paths/add_lib_to_load_path.feature
hubbub-0.0.6 lib/vendor/plugins/rspec/features/load_paths/add_lib_to_load_path.feature
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/features/load_paths/add_lib_to_load_path.feature
media-path-0.1.2 vendor/rspec/features/load_paths/add_lib_to_load_path.feature
simple-templater-0.0.1.3 vendor/rspec/features/load_paths/add_lib_to_load_path.feature
pupu-0.0.2.pre vendor/rspec/features/load_paths/add_lib_to_load_path.feature
media-path-0.1.1.pre vendor/rspec/features/load_paths/add_lib_to_load_path.feature
simple-templater-0.0.1.2 vendor/rspec/features/load_paths/add_lib_to_load_path.feature
media-path-0.1.1 vendor/rspec/features/load_paths/add_lib_to_load_path.feature
simple-templater-0.0.1.1 vendor/rspec/features/load_paths/add_lib_to_load_path.feature
pupu-0.0.2 vendor/rspec/features/load_paths/add_lib_to_load_path.feature