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 CHANGED
@@ -1 +1 @@
1
- 0.0.10
1
+ 0.0.11
@@ -9,6 +9,11 @@ require "cgi"
9
9
  end
10
10
 
11
11
  module Solve360
12
+ def self.debug
13
+ Company.debug_output
14
+ Contact.debug_output
15
+ end
16
+
12
17
  class SaveFailure < Exception
13
18
  end
14
19
  end
@@ -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 \&amp\; 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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 10
9
- version: 0.0.10
8
+ - 11
9
+ version: 0.0.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - Stephen Bartholomew