File: load_path.feature

package info (click to toggle)
cucumber 2.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,076 kB
  • sloc: ruby: 17,016; javascript: 4,641; makefile: 12; sh: 10; tcl: 3
file content (17 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Feature: Set up a default load path

  When you're developing a gem, it's convenient if your project's `lib` directory
  is already in the load path. Cucumber does this for you.

  Scenario: ./lib is included in the $LOAD_PATH
    Given a file named "features/support/env.rb" with:
      """
      require 'something'
      """
    And a file named "lib/something.rb" with:
      """
      class Something
      end
      """
    When I run `cucumber`
    Then it should pass