quickbooks_web_connector 0.6.3 → 0.7.0
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.
- checksums.yaml +5 -5
- data/README.md +1 -1
- data/app/controllers/quickbooks_web_connector/quickbooks_web_connector_controller.rb +1 -1
- data/app/controllers/quickbooks_web_connector/qwc_controller.rb +1 -1
- data/app/controllers/quickbooks_web_connector/soap_controller.rb +1 -1
- data/lib/quickbooks_web_connector/version.rb +1 -1
- data/spec/controllers/quickbooks_web_connector/qwc_controller_spec.rb +2 -2
- data/spec/dummy/config/environments/development.rb +2 -2
- data/spec/dummy/config/environments/production.rb +7 -1
- data/spec/dummy/config/environments/test.rb +9 -5
- data/spec/dummy/config/initializers/secret_token.rb +6 -2
- data/spec/dummy/log/test.log +1619 -0
- data/spec/spec_helper.rb +9 -9
- data/spec/support/redis/dump.rdb +0 -0
- data/spec/support/redis/stdout +4989 -0
- metadata +75 -61
data/spec/spec_helper.rb
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
ENV["RAILS_ENV"] = "test"
|
3
3
|
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
4
4
|
|
5
|
+
require 'rails-controller-testing'
|
6
|
+
|
5
7
|
$dir = File.dirname(File.expand_path(__FILE__))
|
6
8
|
|
7
9
|
require 'rspec/rails'
|
@@ -11,16 +13,14 @@ require 'rexml/document'
|
|
11
13
|
# in spec/support and it's subdirectories
|
12
14
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
13
15
|
|
14
|
-
# Rails
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
super
|
16
|
+
# Rails defines a custom params parser for XML that expects a 'hash' key as the root, but our XML doesn't match that
|
17
|
+
ActionController::TestRequest.prepend(Module.new do
|
18
|
+
def initialize(*)
|
19
|
+
super
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
end
|
21
|
+
@custom_param_parsers[:xml] = lambda { |raw_post| Hash.from_xml(raw_post) }
|
22
|
+
end
|
23
|
+
end)
|
24
24
|
|
25
25
|
RSpec.configure do |config|
|
26
26
|
config.expect_with :rspec do |c|
|
data/spec/support/redis/dump.rdb
CHANGED
Binary file
|