Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #317 from tvdeyen/fix-rubocop-complaints
Browse files Browse the repository at this point in the history
Rubocop -a on spec files
  • Loading branch information
tvdeyen authored Mar 4, 2022
2 parents f2e9135 + a820f85 commit c8000c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions spec/features/frontend/venmo_checkout_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
next_checkout_step
finalize_checkout

expect(Spree::Order.last.complete?).to eq(true)
expect(Spree::Order.last.complete?).to be(true)
end
end

Expand All @@ -95,8 +95,8 @@
next_checkout_step
finalize_checkout

expect(Spree::Order.last.complete?).to eq(true)
expect(Spree::Payment.last.source.venmo?).to eq(true)
expect(Spree::Order.last.complete?).to be(true)
expect(Spree::Payment.last.source.venmo?).to be(true)
end
end

Expand Down Expand Up @@ -124,7 +124,7 @@
next_checkout_step
finalize_checkout

expect(Spree::Order.all.all?(&:complete?)).to eq(true)
expect(Spree::Order.all.all?(&:complete?)).to be(true)
end
end
end
Expand Down
18 changes: 9 additions & 9 deletions spec/models/solidus_paypal_braintree/source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

result = subject.save

expect(result).to eq(true)
expect(result).to be(true)
expect(subject.paypal_funding_source).to be_nil
end

Expand All @@ -35,9 +35,9 @@

result = subject.save

expect(result).to eq(true)
expect(result).to be(true)
expect(subject.paypal_funding_source).to eq('applepay')
expect(subject.applepay_funding?).to eq(true)
expect(subject.applepay_funding?).to be(true)
end

it "doesn't become nil when the payment_type is a PAYPAL" do
Expand All @@ -46,8 +46,8 @@

result = subject.save

expect(result).to eq(true)
expect(subject.venmo_funding?).to eq(true)
expect(result).to be(true)
expect(subject.venmo_funding?).to be(true)
end

it 'becomes nil when the payment_type is a CREDIT CARD' do
Expand All @@ -56,7 +56,7 @@

result = subject.save

expect(result).to eq(true)
expect(result).to be(true)
expect(subject.paypal_funding_source).to be_nil
end

Expand All @@ -66,7 +66,7 @@

result = subject.save

expect(result).to eq(true)
expect(result).to be(true)
expect(subject.paypal_funding_source).to be_nil
end
end
Expand Down Expand Up @@ -333,13 +333,13 @@
context 'when the source token is not known at Braintree' do
include_context 'with unknown source token'

it { is_expected.to be(nil) }
it { is_expected.to be_nil }
end

context 'when the source token is nil' do
include_context 'with nil source token'

it { is_expected.to be(nil) }
it { is_expected.to be_nil }
end
end

Expand Down

0 comments on commit c8000c5

Please sign in to comment.