[DRE-commits] [ruby-aruba] 62/74: Duplicate example
Hideki Yamane
henrich at moszumanska.debian.org
Sat Nov 28 01:16:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
henrich pushed a commit to branch debian/sid
in repository ruby-aruba.
commit e2ca45440055d9959b12ffaeb9d89fa8ed0ddda0
Author: Dennis Günnewig <dg1 at ratiodata.de>
Date: Fri Nov 27 09:10:37 2015 +0100
Duplicate example
---
features/commands/environment_variables.feature | 64 -------------------------
1 file changed, 64 deletions(-)
diff --git a/features/commands/environment_variables.feature b/features/commands/environment_variables.feature
deleted file mode 100644
index 895aa80..0000000
--- a/features/commands/environment_variables.feature
+++ /dev/null
@@ -1,64 +0,0 @@
-Feature: Modify environment variables
-
- In order to test command line applications which make use of environment variables
- As a developer using Cucumber
- I want to use the command environment variable step
-
- Background:
- Given I use a fixture named "cli-app"
-
- Scenario: Change/Set value of arbitrary environment variable
- Given an executable named "bin/cli" with:
- """ruby
- #!/usr/bin/env ruby
-
- puts ENV['LONG_LONG_VARIABLE']
- """
- And a file named "features/environment_variable.feature" with:
- """cucumber
- Feature: Flushing output
- Scenario: Run command
- Given I set the environment variables to:
- | variable | value |
- | LONG_LONG_VARIABLE | long_value |
- When I run `cli`
- Then the output should contain "long_value"
- """
- When I run `cucumber`
- Then the features should all pass
-
- Scenario: Change the HOME-variable of current user during test using custom step
- Given an executable named "bin/cli" with:
- """ruby
- #!/usr/bin/env ruby
-
- puts File.expand_path('~/')
- """
- And a file named "features/home_directory.feature" with:
- """cucumber
- Feature: Run command with different home directory
- Scenario: Run command
- Given a mocked home directory
- When I run `cli`
- Then the output should contain "tmp/aruba"
- """
- When I run `cucumber`
- Then the features should all pass
-
- Scenario: Change the HOME-variable of current user during test using tag
- Given an executable named "bin/cli" with:
- """ruby
- #!/usr/bin/env ruby
-
- puts File.expand_path('~/')
- """
- And a file named "features/home_directory.feature" with:
- """cucumber
- Feature: Run command
- @mocked_home_directory
- Scenario: Run command
- When I run `cli`
- Then the output should contain "tmp/aruba"
- """
- When I run `cucumber`
- Then the features should all pass
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-aruba.git
More information about the Pkg-ruby-extras-commits
mailing list