spec/spec_helper.rb in washout_builder-0.15.4 vs spec/spec_helper.rb in washout_builder-0.15.5
- old
+ new
@@ -34,11 +34,10 @@
require File.expand_path('../dummy/config/environment.rb', __FILE__)
require File.expand_path('../../config/routes.rb', __FILE__)
require 'rails/test_help'
require 'rspec/rails'
-require 'rspec/autorun'
require 'savon'
require 'wash_out'
require 'capybara/rspec'
require 'capybara/rails'
@@ -47,10 +46,12 @@
Rails.backtrace_cleaner.remove_silencers!
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
+FIxMinitest.disable_autorun
+# Test::Unit.run = true if defined?(Test::Unit) && Test::Unit.respond_to?(:run=)
RSpec.configure do |config|
require 'rspec/expectations'
config.include RSpec::Matchers
config.infer_spec_type_from_file_location!
@@ -67,10 +68,11 @@
snakecase_input: false,
camelize_wsdl: false,
namespace: false
}
end
+#config.expect_with(:rspec) { |c| c.syntax = :should }
config.after(:suite) do
if SimpleCov.running
silence_stream(STDOUT) do
SimpleCov::Formatter::HTMLFormatter.new.format(SimpleCov.result)
@@ -106,8 +108,11 @@
end
class WashoutBuilderTestError < base_exception
end
-def get_wash_out_param(class_name_or_structure, soap_config = soap_config)
+def get_wash_out_param(class_name_or_structure, soap_config = OpenStruct.new(
+ camelize_wsdl: false,
+ namespace: '/api/wsdl'
+))
WashOut::Param.parse_builder_def(soap_config, class_name_or_structure)[0]
end