solve360 0.0.10 → 0.0.11
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/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
|