bashcov 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ module Bashcov
11
11
 
12
12
  # @param [String] command Command to run
13
13
  def initialize command
14
- @command = File.expand_path(command)
14
+ @command = command
15
15
  end
16
16
 
17
17
  # Runs the command capturing +stdout+ and +stderr+.
@@ -1,4 +1,4 @@
1
1
  module Bashcov
2
2
  # Bashcov version
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
@@ -5,6 +5,10 @@ describe Bashcov::Runner do
5
5
  let(:bash_files_glob) { "#{Bashcov.root_directory}/**/*.sh" }
6
6
 
7
7
  describe "#run" do
8
+ it "finds commands in $PATH" do
9
+ Bashcov::Runner.new('ls -l').run.should be_success
10
+ end
11
+
8
12
  context "without a SHELLOPTS variable" do
9
13
  before do
10
14
  ENV['SHELLOPTS'] = nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bashcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-20 00:00:00.000000000 Z
12
+ date: 2013-02-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: simplecov