Active 0.0.26 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/services/activity.rb +1 -1
- data/spec/activity_spec.rb +2 -3
- data/version.txt +1 -1
- metadata +2 -2
data/lib/services/activity.rb
CHANGED
@@ -438,7 +438,7 @@ module Active
|
|
438
438
|
# reg-not-open – Online registration is available, but is not currently open
|
439
439
|
# reg-closed – The registration deadline has passed
|
440
440
|
# reg-open – Registration is currently open
|
441
|
-
def
|
441
|
+
def regristration_status
|
442
442
|
if @gsa.asset_type_id == "EA4E860A-9DCD-4DAA-A7CA-4A77AD194F65"
|
443
443
|
Net::HTTP.get URI.parse("http://apij.active.com/regcenter/event/#{@gsa.substitutionUrl}/regstatus")
|
444
444
|
elsif @gsa.asset_type_id == "DFAA997A-D591-44CA-9FB7-BF4A4C8984F1"
|
data/spec/activity_spec.rb
CHANGED
@@ -407,12 +407,11 @@ describe Activity do
|
|
407
407
|
|
408
408
|
end
|
409
409
|
describe "regristration_available?" do
|
410
|
-
it "should have a valid response for
|
410
|
+
it "should have a valid response for regristration_status" do
|
411
411
|
results = Search.search( { :num_results => 50, :keywords => ["running"] } )
|
412
412
|
results.should have(50).results
|
413
|
-
# results.results.first.regristration_available?.should match(/reg-open|reg-unavailable|reg-not-open|reg-closed/)
|
414
413
|
results.results.each do |a|
|
415
|
-
a.
|
414
|
+
a.regristration_status.should match(/reg-open|reg-unavailable|reg-not-open|reg-closed/)
|
416
415
|
end
|
417
416
|
end
|
418
417
|
end
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.27
|