hungrytable 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Hungrytable
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hungrytable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
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: 2012-07-03 00:00:00.000000000 Z
13
+ date: 2012-07-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -208,7 +208,6 @@ files:
208
208
  - test/test_helper.rb
209
209
  - test/unit/config_test.rb
210
210
  - test/unit/get_request_test.rb
211
- - test/unit/hungrytable/restaurant_test.rb
212
211
  - test/unit/hungrytable/user_test.rb
213
212
  - test/unit/post_request_test.rb
214
213
  - test/unit/request_test.rb
@@ -232,7 +231,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
232
231
  version: '0'
233
232
  segments:
234
233
  - 0
235
- hash: 2689950067166416239
234
+ hash: 392950278143292410
236
235
  required_rubygems_version: !ruby/object:Gem::Requirement
237
236
  none: false
238
237
  requirements:
@@ -241,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
240
  version: '0'
242
241
  segments:
243
242
  - 0
244
- hash: 2689950067166416239
243
+ hash: 392950278143292410
245
244
  requirements: []
246
245
  rubyforge_project: hungrytable
247
246
  rubygems_version: 1.8.24
@@ -1,41 +0,0 @@
1
- require 'test_helper'
2
-
3
- describe Hungrytable::Restaurant do
4
- subject { Hungrytable::Restaurant }
5
-
6
- it 'should be a class' do
7
- subject.class.must_be_kind_of Class
8
- end
9
-
10
- %w{ get_details search }.each do |meth|
11
- it "should respond to #{meth}" do
12
- assert subject.new.respond_to?(meth.to_sym), true
13
- end
14
- end
15
-
16
- describe '#get_details' do
17
- before do
18
- @restaurant = subject.new
19
- stub_request(:get, /.*secure.opentable.com\/api\/otapi_v2.ashx\/restaurant.*/).to_return(File.new('./test/restaurant_get_details_result.json'))
20
- end
21
-
22
- it 'should return relevant details about an individual restaurant' do
23
- response = @restaurant.get_details(82591)
24
- response.must_be_kind_of Hash
25
- end
26
- end
27
-
28
- describe '#search' do
29
- before do
30
- @restaurant = subject.new
31
- stub_request(:get, /.*secure.opentable.com\/api\/otapi_v2.ashx\/table.*/).to_return(File.new('./test/restaurant_search_result.json'), :status => 200)
32
- end
33
-
34
- it 'should look for availability at an inidividual restaurant' do
35
- date_time = Time.now.strftime "%-m/#{Time.now.day + 1}/%Y %-l:%M %p"
36
- response = @restaurant.search({ restaurant_id: 82591, date_time: date_time, party_size: 2 })
37
- response.must_be_kind_of Hash
38
- end
39
- end
40
-
41
- end