exec 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,6 @@ module Exec
10
10
  class << self
11
11
  alias :_system :system
12
12
  def system(*args)
13
- _system(*args)
14
13
  case _system(*args)
15
14
  when true ; true
16
15
  when nil ; raise CommandNotFoundException
@@ -1,4 +1,4 @@
1
1
  module Exec
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
4
4
 
@@ -8,6 +8,7 @@ describe Exec do
8
8
 
9
9
  describe '#system' do
10
10
  context "with successful completion" do
11
+ before { Exec.should_receive(:_system).once.and_return true }
11
12
  specify { Exec.system("true").should == true }
12
13
  end
13
14
  context "with non-zero exit code" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: