tango 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/tango/shell.rb +6 -0
- data/lib/tango/version.rb +1 -1
- data/spec/met_and_meet_spec.rb +2 -2
- data/spec/shell_spec.rb +8 -0
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/tango/shell.rb
CHANGED
data/lib/tango/version.rb
CHANGED
data/spec/met_and_meet_spec.rb
CHANGED
data/spec/shell_spec.rb
CHANGED
@@ -48,5 +48,13 @@ module Tango
|
|
48
48
|
@stub.shell("echo", "Hello, world!", :echo => false).output.should == "Hello, world!\n"
|
49
49
|
end
|
50
50
|
|
51
|
+
context "shell! method" do
|
52
|
+
it "should raise an exception if the command fails" do
|
53
|
+
expect {
|
54
|
+
@stub_class.new.shell!("test", "a", "=", "b")
|
55
|
+
}.should raise_error("Shell command failed with status 1")
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
51
59
|
end
|
52
60
|
end
|
metadata
CHANGED