Permalink
Browse files

Verbose config option available.

  • Loading branch information...
1 parent c864b11 commit 5fe22c3186df32926e14b819a60f2e49687a9b40 @leanucci leanucci committed Mar 11, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −1 lib/bravo.rb
  2. +0 −2 spec/spec_helper.rb
View
@@ -17,9 +17,11 @@ class NullOrInvalidAttribute < StandardError; end
extend self
attr_accessor :cuit, :sale_point, :service_url, :default_documento, :pkey, :cert,
- :default_concepto, :default_moneda, :own_iva_cond
+ :default_concepto, :default_moneda, :own_iva_cond, :verbose
def auth_hash
{"Token" => Bravo::TOKEN, "Sign" => Bravo::SIGN, "Cuit" => Bravo.cuit}
end
+
+ Savon::Request.log = false unless (Bravo.verbose == "true") || (ENV["VERBOSE"] == true)
end
View
@@ -11,8 +11,6 @@ class SpecHelper
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
-Savon::Request.log = false unless ENV["VERBOSE"] == "true"
-
Bravo.pkey = "spec/fixtures/pkey"
Bravo.cert = "spec/fixtures/cert.crt"
Bravo.cuit = ENV["CUIT"] || raise(Bravo::NullOrInvalidAttribute.new, "Please set CUIT env variable.")

0 comments on commit 5fe22c3

Please sign in to comment.