Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gerard-morera committed Jun 23, 2020
1 parent efa152b commit 323b4e6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def initialize(result:, error_data:)
@error_data = error_data
end

def acknowleged?
def acknowledged?
!!result
end

Expand Down
6 changes: 3 additions & 3 deletions spec/play_store/acknowledger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
result = subject.acknowledge_product_purchase(package_name: package_name, product_id: product_id, token: token)

result.must_be_instance_of CandyCheck::PlayStore::ProductAcknowledgements::Response
result.acknowleged?.must_be_true
result.acknowledged?.must_be_true
result.error.must_be_nil
end
end
Expand All @@ -27,7 +27,7 @@
result = subject.acknowledge_product_purchase(package_name: package_name, product_id: product_id, token: token)

result.must_be_instance_of CandyCheck::PlayStore::ProductAcknowledgements::Response
result.acknowleged?.must_be_false
result.acknowledged?.must_be_false
result.error[:body].must_equal(error_body)
result.error[:status_code].must_equal(400)
end
Expand All @@ -39,7 +39,7 @@
result = subject.acknowledge_product_purchase(package_name: package_name, product_id: product_id, token: token)

result.must_be_instance_of CandyCheck::PlayStore::ProductAcknowledgements::Response
result.acknowleged?.must_be_false
result.acknowledged?.must_be_false
result.error[:body].must_equal(error_body)
result.error[:status_code].must_equal(400)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
result = subject.call!

result.must_be_instance_of CandyCheck::PlayStore::ProductAcknowledgements::Response
result.acknowleged?.must_be_true
result.acknowledged?.must_be_true
result.error.must_be_nil
end
end
Expand All @@ -33,7 +33,7 @@
result = subject.call!

result.must_be_instance_of CandyCheck::PlayStore::ProductAcknowledgements::Response
result.acknowleged?.must_be_false
result.acknowledged?.must_be_false
result.error[:body].must_equal(error_body)
result.error[:status_code].must_equal(400)
end
Expand All @@ -45,7 +45,7 @@
result = subject.call!

result.must_be_instance_of CandyCheck::PlayStore::ProductAcknowledgements::Response
result.acknowleged?.must_be_false
result.acknowledged?.must_be_false
result.error[:body].must_equal(error_body)
result.error[:status_code].must_equal(400)
end
Expand Down
6 changes: 3 additions & 3 deletions spec/play_store/product_acknowledgements/response_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
CandyCheck::PlayStore::ProductAcknowledgements::Response.new(result: result, error_data: error_data)
end

describe '#acknowleged?' do
describe '#acknowledged?' do
context 'when result present' do
let(:result) { '' }
let(:error_data) { nil }

it 'returns true' do
result = subject.acknowleged?
result = subject.acknowledged?

result.must_be_true
end
Expand All @@ -22,7 +22,7 @@
let(:error_data) { nil }

it 'returns false' do
result = subject.acknowleged?
result = subject.acknowledged?

result.must_be_false
end
Expand Down

0 comments on commit 323b4e6

Please sign in to comment.