abongo 1.0.3 → 1.0.4
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/lib/abongo/sugar.rb +9 -1
- data/lib/abongo/version.rb +1 -1
- data/lib/abongo/view_helper.rb +9 -1
- metadata +2 -2
data/lib/abongo/sugar.rb
CHANGED
@@ -43,7 +43,15 @@ class Abongo
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def bongo!(test_name, options = {})
|
46
|
-
|
46
|
+
begin
|
47
|
+
Abongo.bongo!(test_name, options)
|
48
|
+
rescue
|
49
|
+
if Abongo.options[:failsafe]
|
50
|
+
return
|
51
|
+
else
|
52
|
+
raise
|
53
|
+
end
|
54
|
+
end
|
47
55
|
end
|
48
56
|
|
49
57
|
#Mark the user as a human.
|
data/lib/abongo/version.rb
CHANGED
data/lib/abongo/view_helper.rb
CHANGED
@@ -42,7 +42,15 @@ class Abongo
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def bongo!(test_name, options = {})
|
45
|
-
|
45
|
+
begin
|
46
|
+
Abongo.bongo!(test_name, options)
|
47
|
+
rescue
|
48
|
+
if Abongo.options[:failsafe]
|
49
|
+
return
|
50
|
+
else
|
51
|
+
raise
|
52
|
+
end
|
53
|
+
end
|
46
54
|
end
|
47
55
|
|
48
56
|
#This causes an AJAX post against the URL. That URL should call Abongo.human!
|