cruisestatus 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/cruisestatus.gemspec +1 -1
- data/spec/cruisestatus_spec.rb +6 -6
- data/spec/spec_helper.rb +0 -3
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.3
|
data/cruisestatus.gemspec
CHANGED
data/spec/cruisestatus_spec.rb
CHANGED
@@ -4,8 +4,8 @@ describe CruiseStatus do
|
|
4
4
|
|
5
5
|
describe "on failed build" do
|
6
6
|
before :each do
|
7
|
-
|
8
|
-
stub(
|
7
|
+
io = mock( Object.new, :read => FAIL_RESPONSE )
|
8
|
+
Kernel.stub!(:open).with( 'ccrb.rss' ).and_return io
|
9
9
|
|
10
10
|
@status = CruiseStatus.new 'ccrb.rss'
|
11
11
|
end
|
@@ -21,8 +21,8 @@ describe CruiseStatus do
|
|
21
21
|
|
22
22
|
describe "on passing build" do
|
23
23
|
before :each do
|
24
|
-
|
25
|
-
stub(
|
24
|
+
io = mock( Object.new, :read => PASS_RESPONSE )
|
25
|
+
Kernel.stub!(:open).with( 'ccrb.rss' ).and_return io
|
26
26
|
|
27
27
|
@status = CruiseStatus.new 'ccrb.rss'
|
28
28
|
end
|
@@ -38,8 +38,8 @@ describe CruiseStatus do
|
|
38
38
|
|
39
39
|
describe "on failed connection to cruise" do
|
40
40
|
before :each do
|
41
|
-
|
42
|
-
stub(
|
41
|
+
io = mock( Object.new ).stub!(:read).and_raise( Exception )
|
42
|
+
Kernel.stub!(:open).with( 'ccrb.rss' ).and_return io
|
43
43
|
|
44
44
|
@status = CruiseStatus.new 'ccrb.rss'
|
45
45
|
end
|
data/spec/spec_helper.rb
CHANGED