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

Rubocop -a on spec files #317

Merged
merged 1 commit into from
Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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