Skip to content

Commit

Permalink
style: whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Mar 25, 2020
1 parent 2a386d0 commit f060482
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/pact/term.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,5 @@ def self.unpack_regexps_from_hash source
destination[key] = unpack_regexps source[key]
end
end

end
end
4 changes: 4 additions & 0 deletions spec/lib/pact/matchers/matchers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ module Pact::Matchers

context "where an array is expected, but a hash is found" do
subject { {:a => :b} }

let(:actual) { [4, 5, 6] }

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

context "where a hash is expected, but array is found" do
subject { [4,5,6] }

let(:actual) { {:a => :b} }

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

context "when two different arrays are found" do
subject { [4,5,6] }

let(:actual) { [4, 6, 7] }
let(:difference) { [NoDiffAtIndex.new, Difference.new(5, 6), Difference.new(6, 7)] }

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

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

let(:actual) { ["4", "5", "6"] }

it 'includes this in the diff' do
Expand Down
2 changes: 0 additions & 2 deletions spec/lib/pact/term_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ module Pact
it "returns a structure with the Pact::Terms replaced by their regexps" do
expect(Term.unpack_regexps(body)).to eq expected
end

end

end
end

0 comments on commit f060482

Please sign in to comment.