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 CHANGED
@@ -1 +1 @@
1
- 1.1.2
1
+ 1.1.3
data/cruisestatus.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cruisestatus}
8
- s.version = "1.1.2"
8
+ s.version = "1.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Toby Tripp"]
@@ -4,8 +4,8 @@ describe CruiseStatus do
4
4
 
5
5
  describe "on failed build" do
6
6
  before :each do
7
- stub( io = Object.new ).read { FAIL_RESPONSE }
8
- stub( Kernel ).open( 'ccrb.rss' ) { io }
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
- stub( io = Object.new ).read { PASS_RESPONSE }
25
- stub( Kernel ).open( 'ccrb.rss' ) { io }
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
- stub( io = Object.new ).read { raise Exception, 'Cannot connect' }
42
- stub( Kernel ).open( 'ccrb.rss' ) { io }
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
@@ -6,8 +6,5 @@ require "rubygems"
6
6
  require 'spec'
7
7
  require 'spec/autorun'
8
8
 
9
- require "rr"
10
-
11
9
  Spec::Runner.configure do |config|
12
- config.mock_with :rr
13
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cruisestatus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Tripp