Skip to content

Commit

Permalink
Again, don't hard code 60 in config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jylamont committed Sep 17, 2020
1 parent fb3b1b5 commit 3616020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/vero/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def reset!
self.logging = false
self.api_key = nil
self.secret = nil
self.http_timeout = 60
self.http_timeout = nil
end

def update_attributes(attributes = {})
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
config.api_key = nil
config.secret = nil
config.development_mode = nil
expect(config.request_params).to eq(:_config => { http_timeout: 60 })
expect(config.request_params).to eq(_config: { http_timeout: nil })

config.api_key = 'abcd1234'
config.secret = 'abcd1234'
Expand Down

0 comments on commit 3616020

Please sign in to comment.