Skip to content

Commit f060482

Browse files
committed
style: whitespace
1 parent 2a386d0 commit f060482

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/pact/term.rb

-1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,5 @@ def self.unpack_regexps_from_hash source
8080
destination[key] = unpack_regexps source[key]
8181
end
8282
end
83-
8483
end
8584
end

spec/lib/pact/matchers/matchers_spec.rb

+4
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ module Pact::Matchers
531531

532532
context "where an array is expected, but a hash is found" do
533533
subject { {:a => :b} }
534+
534535
let(:actual) { [4, 5, 6] }
535536

536537
it 'includes this in the diff' do
@@ -540,6 +541,7 @@ module Pact::Matchers
540541

541542
context "where a hash is expected, but array is found" do
542543
subject { [4,5,6] }
544+
543545
let(:actual) { {:a => :b} }
544546

545547
it 'includes this in the diff' do
@@ -549,6 +551,7 @@ module Pact::Matchers
549551

550552
context "when two different arrays are found" do
551553
subject { [4,5,6] }
554+
552555
let(:actual) { [4, 6, 7] }
553556
let(:difference) { [NoDiffAtIndex.new, Difference.new(5, 6), Difference.new(6, 7)] }
554557

@@ -559,6 +562,7 @@ module Pact::Matchers
559562

560563
context "when an array that matches the Pact::Term is found" do
561564
subject { [Pact::Term.new(:matcher => /4/, :generate => '4'),"5","6"] }
565+
562566
let(:actual) { ["4", "5", "6"] }
563567

564568
it 'includes this in the diff' do

spec/lib/pact/term_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ module Pact
8282
it "returns a structure with the Pact::Terms replaced by their regexps" do
8383
expect(Term.unpack_regexps(body)).to eq expected
8484
end
85-
8685
end
87-
8886
end
8987
end

0 commit comments

Comments
 (0)