holden-hostelify 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Manifest +16 -16
- data/Rakefile +1 -1
- data/hostelify.gemspec +1 -1
- data/lib/hostelify/hostelworld.rb +2 -0
- data/spec/hw_find_by_hostel.spec +4 -3
- metadata +1 -1
data/Manifest
CHANGED
@@ -7,22 +7,22 @@ lib/hostelify/gomio.rb
|
|
7
7
|
lib/hostelify/hostelbookers.rb
|
8
8
|
lib/hostelify/hostelify.rb
|
9
9
|
lib/hostelify/hostelworld.rb
|
10
|
-
pkg/hostelify-0.3.
|
11
|
-
pkg/hostelify-0.3.
|
12
|
-
pkg/hostelify-0.3.
|
13
|
-
pkg/hostelify-0.3.
|
14
|
-
pkg/hostelify-0.3.
|
15
|
-
pkg/hostelify-0.3.
|
16
|
-
pkg/hostelify-0.3.
|
17
|
-
pkg/hostelify-0.3.
|
18
|
-
pkg/hostelify-0.3.
|
19
|
-
pkg/hostelify-0.3.
|
20
|
-
pkg/hostelify-0.3.
|
21
|
-
pkg/hostelify-0.3.
|
22
|
-
pkg/hostelify-0.3.
|
23
|
-
pkg/hostelify-0.3.
|
24
|
-
pkg/hostelify-0.3.
|
25
|
-
pkg/hostelify-0.3.
|
10
|
+
pkg/hostelify-0.3.6.gem
|
11
|
+
pkg/hostelify-0.3.6.tar.gz
|
12
|
+
pkg/hostelify-0.3.6/Manifest
|
13
|
+
pkg/hostelify-0.3.6/README.rdoc
|
14
|
+
pkg/hostelify-0.3.6/Rakefile
|
15
|
+
pkg/hostelify-0.3.6/hostelify.gemspec
|
16
|
+
pkg/hostelify-0.3.6/lib/hostelify.rb
|
17
|
+
pkg/hostelify-0.3.6/lib/hostelify/gomio.rb
|
18
|
+
pkg/hostelify-0.3.6/lib/hostelify/hostelbookers.rb
|
19
|
+
pkg/hostelify-0.3.6/lib/hostelify/hostelify.rb
|
20
|
+
pkg/hostelify-0.3.6/lib/hostelify/hostelworld.rb
|
21
|
+
pkg/hostelify-0.3.6/spec/_helper.rb
|
22
|
+
pkg/hostelify-0.3.6/spec/hb_find_by_hostel.spec
|
23
|
+
pkg/hostelify-0.3.6/spec/hb_find_hostels.spec
|
24
|
+
pkg/hostelify-0.3.6/spec/hw_find_by_hostel.spec
|
25
|
+
pkg/hostelify-0.3.6/spec/hw_find_hostels.spec
|
26
26
|
spec/_helper.rb
|
27
27
|
spec/hb_find_by_hostel.spec
|
28
28
|
spec/hb_find_hostels.spec
|
data/Rakefile
CHANGED
data/hostelify.gemspec
CHANGED
@@ -206,6 +206,8 @@ class Hostelworld
|
|
206
206
|
form.field_with(:name => 'selDay').options[day-1].select
|
207
207
|
form.field_with(:name => 'selYear').options[year].select
|
208
208
|
form.field_with(:name => 'NumNights').options[no_days.to_i-1].select
|
209
|
+
form.field_with(:name => 'Persons').options[no_ppl.to_i-1].select
|
210
|
+
form.field_with(:name => 'Currency').options[4].select #US Currency
|
209
211
|
|
210
212
|
Retryable.try 3 do
|
211
213
|
page = agent.submit(form)
|
data/spec/hw_find_by_hostel.spec
CHANGED
@@ -61,7 +61,8 @@ end
|
|
61
61
|
|
62
62
|
describe "with dates to get availabilty and verify output!" do
|
63
63
|
before(:all) do
|
64
|
-
|
64
|
+
#@h = Hostelworld.find_hostel_by_id(:id => 20763, :date => (Date.today+20).to_s)
|
65
|
+
@h = Hostelworld.find_hostel_by_id(:id => 7113, :date => (Date.today+20).to_s)
|
65
66
|
end
|
66
67
|
|
67
68
|
it "get first availability and check it merit" do
|
@@ -69,11 +70,11 @@ describe "with dates to get availabilty and verify output!" do
|
|
69
70
|
end
|
70
71
|
|
71
72
|
it "check number of avail beds" do
|
72
|
-
@h.availability.
|
73
|
+
@h.availability.last.spots.to_i.should be >= 1
|
73
74
|
end
|
74
75
|
|
75
76
|
it "last avail has a price > 5 US" do
|
76
|
-
@h.availability.
|
77
|
+
@h.availability.last.price.to_i.should be > 5
|
77
78
|
end
|
78
79
|
|
79
80
|
it "book date eq today + 10" do
|