Skip to content

Commit

Permalink
fix: correct :false to false in verification decorator to correctly h…
Browse files Browse the repository at this point in the history
…andle read only property providerName
  • Loading branch information
bethesque committed Aug 23, 2018
1 parent b0bb604 commit 4af4ed1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pact_broker/api/decorators/verification_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Api
module Decorators
class VerificationDecorator < BaseDecorator

property :provider_name, as: :providerName, writeable: :false
property :provider_name, as: :providerName, writeable: false
property :provider_version_number, as: :providerApplicationVersion, writeable: false
property :success
property :execution_date, as: :verificationDate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ module Decorators
let(:options) { { user_options: { base_url: 'http://example.org' } } }


subject { JSON.parse VerificationDecorator.new(verification).to_json(options), symbolize_names: true }
let(:json) { VerificationDecorator.new(verification).to_json(options) }

subject { JSON.parse json, symbolize_names: true }

it "includes the success status" do
expect(subject[:success]).to eq true
Expand Down

0 comments on commit 4af4ed1

Please sign in to comment.