[DRE-commits] [ruby-aruba] 31/98: Added another example to check for non-executable files
Hideki Yamane
henrich at moszumanska.debian.org
Tue Mar 22 12:20:36 UTC 2016
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 a3b662311fd359f35d1bf5754b87e86798a0ca81
Author: Dennis Günnewig <dev at fedux.org>
Date: Sat Jan 2 13:30:22 2016 +0100
Added another example to check for non-executable files
---
.../matchers/file/be_a_command_found_in_path.feature | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/features/matchers/file/be_a_command_found_in_path.feature b/features/matchers/file/be_a_command_found_in_path.feature
index 86990df..c1b121a 100644
--- a/features/matchers/file/be_a_command_found_in_path.feature
+++ b/features/matchers/file/be_a_command_found_in_path.feature
@@ -53,6 +53,23 @@ Feature: Check if command can be found in PATH
When I run `rspec`
Then the specs should all pass
+ Scenario: Expect single non-executable file
+ Given a file named "spec/existing_executable_spec.rb" with:
+ """
+ require 'spec_helper'
+
+ RSpec.describe 'Check if command can be found in PATH', :type => :aruba do
+ let(:file) { 'file.sh' }
+
+ before(:each) { touch(file) }
+ before(:each) { prepend_environment_variable('PATH', format('%s:', expand_path('.'))) }
+
+ it { expect(file).not_to be_a_command_found_in_path }
+ end
+ """
+ When I run `rspec`
+ Then the specs should all pass
+
Scenario: Expect multiple existing executable files
Given a file named "spec/existing_executable_spec.rb" with:
"""
--
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