pebblebed 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,7 +37,7 @@ module Pebblebed
37
37
 
38
38
  @current_identity = DeepStruct.wrap(deep_stringify_keys(identity))
39
39
 
40
- checkpoint = stub(:get => DeepStruct.wrap(:identity => identity), :service_url => 'http://example.com')
40
+ checkpoint = double(:get => DeepStruct.wrap(:identity => identity), :service_url => 'http://example.com')
41
41
  Pebblebed::Connector.any_instance.stub(:checkpoint => checkpoint)
42
42
 
43
43
  unless guest
@@ -1,3 +1,3 @@
1
1
  module Pebblebed
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/pebblebed.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.add_development_dependency "memcache_mock"
28
28
 
29
29
  s.add_runtime_dependency "deepstruct", ">= 0.0.4"
30
- s.add_runtime_dependency "curb", ">= 0.7.14"
30
+ s.add_runtime_dependency "curb", ">= 0.8.4"
31
31
  s.add_runtime_dependency "yajl-ruby"
32
32
  s.add_runtime_dependency "queryparams"
33
33
  s.add_runtime_dependency "futurevalue"
data/spec/http_spec.rb CHANGED
@@ -7,8 +7,8 @@ require 'deepstruct'
7
7
 
8
8
  describe Pebblebed::Http do
9
9
 
10
- let :mock_pebble do
11
- MockPebble.new
10
+ def mock_pebble
11
+ @mp ||= MockPebble.new
12
12
  end
13
13
 
14
14
  let :pebble_url do
data/spec/sinatra_spec.rb CHANGED
@@ -129,8 +129,7 @@ describe Sinatra::Pebblebed do
129
129
 
130
130
  describe "with access groups control" do
131
131
  let(:checkpoint) {
132
- checkpoint = stub
133
- checkpoint.stub!(:service_url => 'http://example.com')
132
+ checkpoint = double(:service_url => 'http://example.com')
134
133
  checkpoint
135
134
  }
136
135
  context "as a guest" do
@@ -171,8 +170,7 @@ describe Sinatra::Pebblebed do
171
170
 
172
171
  describe "with checkpoint psm2 callbacks" do
173
172
  let(:checkpoint) {
174
- checkpoint = stub
175
- checkpoint.stub!(:service_url => 'http://example.com')
173
+ checkpoint = double(:service_url => 'http://example.com')
176
174
  checkpoint
177
175
  }
178
176
  context "as a guest" do
@@ -242,21 +240,6 @@ describe Sinatra::Pebblebed do
242
240
  end
243
241
  end
244
242
 
245
- describe "error handling" do
246
- before(:each) { guest! }
247
-
248
- it "Adds graceful handling of HttpNotFoundError exceptions" do
249
- get '/nonexistant'
250
- last_response.status.should == 404
251
- end
252
-
253
- it "Gives the error message of HttpNotFoundError as response body" do
254
- get '/nonexistant'
255
- last_response.status.should == 404
256
- last_response.body.should == 'Not found /nonexistant'
257
- end
258
- end
259
-
260
243
  describe "identity caching" do
261
244
 
262
245
  context "with logged in user" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pebblebed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-28 00:00:00.000000000 Z
13
+ date: 2013-10-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -131,7 +131,7 @@ dependencies:
131
131
  requirements:
132
132
  - - ! '>='
133
133
  - !ruby/object:Gem::Version
134
- version: 0.7.14
134
+ version: 0.8.4
135
135
  type: :runtime
136
136
  prerelease: false
137
137
  version_requirements: !ruby/object:Gem::Requirement
@@ -139,7 +139,7 @@ dependencies:
139
139
  requirements:
140
140
  - - ! '>='
141
141
  - !ruby/object:Gem::Version
142
- version: 0.7.14
142
+ version: 0.8.4
143
143
  - !ruby/object:Gem::Dependency
144
144
  name: yajl-ruby
145
145
  requirement: !ruby/object:Gem::Requirement
@@ -329,18 +329,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
329
329
  - - ! '>='
330
330
  - !ruby/object:Gem::Version
331
331
  version: '0'
332
- segments:
333
- - 0
334
- hash: 4417934204208642521
335
332
  required_rubygems_version: !ruby/object:Gem::Requirement
336
333
  none: false
337
334
  requirements:
338
335
  - - ! '>='
339
336
  - !ruby/object:Gem::Version
340
337
  version: '0'
341
- segments:
342
- - 0
343
- hash: 4417934204208642521
344
338
  requirements: []
345
339
  rubyforge_project: pebblebed
346
340
  rubygems_version: 1.8.25
@@ -363,3 +357,4 @@ test_files:
363
357
  - spec/sinatra_spec.rb
364
358
  - spec/spec_helper.rb
365
359
  - spec/uid_spec.rb
360
+ has_rdoc: