Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cqfn#126 Start using aruba to test stderr.
- Loading branch information
Alexey Vinogradov
committed
Jul 11, 2019
1 parent
639dac6
commit 524d4a1
Showing
4 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ Gemfile.lock | |
.bundle/ | ||
.DS_Store | ||
rdoc/ | ||
tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
Feature: Rake Task | ||
Scenario: For now we failed if run rake task | ||
Given It is Unix | ||
And I have a "Rakefile" file with content: | ||
And a file named "Rakefile" with: | ||
""" | ||
require 'pdd/rake_task' | ||
PDD::RakeTask.new | ||
""" | ||
When I run bash with "rake pdd" | ||
Then Exit code is not zero | ||
# @todo #114:30m For now, there haven't a proper method to check STDERR. | ||
# In this test I've tried to check the output with Stdout contains but there is not working. | ||
# Needs a proper alternative to check stderr. | ||
# @todo #126:30m For now there is warning when I run test. | ||
# Needs to replace current call to not deprecated one. | ||
When I run "rake bin/pdd" | ||
Then the exit status should be 1 | ||
And the stderr should contain: | ||
""" | ||
NOT IMPLEMENTED | ||
""" | ||
When I remove a file named "Rakefile" with full force | ||
Then a file named "Rakefile" does not exist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ | |
|
||
require 'simplecov' | ||
require_relative '../../lib/pdd' | ||
require 'aruba/cucumber' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters