aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/rspec-1.3.1/features/load_paths
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2011-02-24 15:10:14 +0000
committerLouise Crow <louise.crow@gmail.com>2011-02-24 15:10:14 +0000
commit08a64f9e3139851fd65c7ba6969ee590b4afea6a (patch)
tree20c77e796002dfa95b2af3ba00ebd2f691c02fc7 /vendor/gems/rspec-1.3.1/features/load_paths
parent3757bb52c0aa86b779b00428d7ebe35b30cea1ee (diff)
Adding rspec gem.
Diffstat (limited to 'vendor/gems/rspec-1.3.1/features/load_paths')
-rw-r--r--vendor/gems/rspec-1.3.1/features/load_paths/add_lib_to_load_path.feature20
-rw-r--r--vendor/gems/rspec-1.3.1/features/load_paths/add_spec_to_load_path.feature20
2 files changed, 40 insertions, 0 deletions
diff --git a/vendor/gems/rspec-1.3.1/features/load_paths/add_lib_to_load_path.feature b/vendor/gems/rspec-1.3.1/features/load_paths/add_lib_to_load_path.feature
new file mode 100644
index 000000000..81513ec75
--- /dev/null
+++ b/vendor/gems/rspec-1.3.1/features/load_paths/add_lib_to_load_path.feature
@@ -0,0 +1,20 @@
+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
+
diff --git a/vendor/gems/rspec-1.3.1/features/load_paths/add_spec_to_load_path.feature b/vendor/gems/rspec-1.3.1/features/load_paths/add_spec_to_load_path.feature
new file mode 100644
index 000000000..b216ebedd
--- /dev/null
+++ b/vendor/gems/rspec-1.3.1/features/load_paths/add_spec_to_load_path.feature
@@ -0,0 +1,20 @@
+Feature: add 'spec' to load path
+ In order to ...
+ As a spec author
+ I want rspec to add 'spec to the load path
+
+ Scenario: add 'spec' to load path
+ Given a directory named "spec"
+ And a file named "example.rb" with:
+ """
+ describe $LOAD_PATH do
+ it "includes with 'spec' in the current directory in the load path" do
+ specdir = File.expand_path(File.join(File.dirname(__FILE__), 'spec'))
+ $LOAD_PATH.should include(specdir)
+ end
+ end
+ """
+ When I run "spec example.rb"
+ Then the stdout should include "1 example, 0 failures"
+ And the exit code should be 0
+