solve360 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/solve360.rb +5 -0
- data/spec/solve360/item_spec.rb +12 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.11
|
data/lib/solve360.rb
CHANGED
data/spec/solve360/item_spec.rb
CHANGED
@@ -227,7 +227,18 @@ end
|
|
227
227
|
|
228
228
|
describe "CGI Converting values" do
|
229
229
|
it "should convert html entities" do
|
230
|
-
@contact = Solve360::Contact.new(:fields => {"First Name" => "Steve & Cat"})
|
230
|
+
@contact = Solve360::Contact.new(:fields => {"First Name" => "Steve & Cat", "Last Name" => 29})
|
231
231
|
@contact.to_request.should match(/Steve \&\; Cat/)
|
232
|
+
@contact.to_request.should match(/29/)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
describe "Debugging" do
|
237
|
+
before do
|
238
|
+
Solve360.debug
|
239
|
+
end
|
240
|
+
|
241
|
+
it "should enable debugging on all requests" do
|
242
|
+
Solve360::Contact.default_options[:debug_output].should_not be_nil
|
232
243
|
end
|
233
244
|
end
|