Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Undo change for named arguments because it isn't working the way I want.
  • Loading branch information
Christi Viets committed May 19, 2017
1 parent 6da20a8 commit a39ec9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mountebank/stub/http_response.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Mountebank::Stub::HttpResponse < Mountebank::Stub::Response
def self.create(statusCode=200, headers={}, body='', behaviors: {}, mode: '')
def self.create(statusCode=200, headers={}, body='', behaviors={}, mode='')
payload = {}
payload[:statusCode] = statusCode
payload[:headers] = headers unless headers.empty?
Expand Down
2 changes: 1 addition & 1 deletion spec/mountebank/stub/http_response_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
let(:body) { {foo:"bar"}.to_json }
let(:behaviors) { {} }
let(:mode) { '' }
let!(:response) { Mountebank::Stub::HttpResponse.create(statusCode, headers, body, behaviors: behaviors, mode: mode) }
let!(:response) { Mountebank::Stub::HttpResponse.create(statusCode, headers, body, behaviors, mode) }

describe '.create' do
it 'returns response object' do
Expand Down

0 comments on commit a39ec9c

Please sign in to comment.