anmo 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/anmo.rb +2 -2
- data/lib/anmo/version.rb +1 -1
- data/test/anmo/application_test.rb +3 -3
- metadata +1 -1
data/lib/anmo.rb
CHANGED
@@ -27,7 +27,7 @@ module Anmo
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def self.delete_all
|
30
|
-
HTTParty.
|
30
|
+
HTTParty.post("#{server}/__DELETE_ALL_OBJECTS__")
|
31
31
|
end
|
32
32
|
|
33
33
|
def self.requests
|
@@ -36,7 +36,7 @@ module Anmo
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def self.delete_all_requests
|
39
|
-
HTTParty.
|
39
|
+
HTTParty.post("#{server}/__DELETE_ALL_REQUESTS__")
|
40
40
|
end
|
41
41
|
|
42
42
|
def self.stored_objects
|
data/lib/anmo/version.rb
CHANGED
@@ -71,7 +71,7 @@ module Anmo
|
|
71
71
|
get "/this/is/the/path.object"
|
72
72
|
first_response = last_response
|
73
73
|
|
74
|
-
|
74
|
+
post "__DELETE_ALL_OBJECTS__"
|
75
75
|
assert_equal 200, last_response.status
|
76
76
|
|
77
77
|
get "/this/is/the/path.object"
|
@@ -129,7 +129,7 @@ module Anmo
|
|
129
129
|
|
130
130
|
def test_does_not_store_create_or_delete_requests
|
131
131
|
save_object "/oh/hai", "the first content", nil, nil, nil
|
132
|
-
|
132
|
+
post "__DELETE_ALL_OBJECTS__"
|
133
133
|
get "/__REQUESTS__"
|
134
134
|
json = JSON.parse(last_response.body)
|
135
135
|
assert_equal 0, json.size
|
@@ -148,7 +148,7 @@ module Anmo
|
|
148
148
|
get "/__REQUESTS__"
|
149
149
|
json = JSON.parse(last_response.body)
|
150
150
|
assert_equal 1, json.size
|
151
|
-
|
151
|
+
post "/__DELETE_ALL_REQUESTS__"
|
152
152
|
get "/__REQUESTS__"
|
153
153
|
json = JSON.parse(last_response.body)
|
154
154
|
assert_equal 0, json.size
|