Skip to content

Commit

Permalink
Fix formatting in rspec matcher's tests
Browse files Browse the repository at this point in the history
The latest changes in diff-lcs gem (updated to 1.4.4) have lead to fails
in our tests due to wrong formatted output. The change has been
introduced here: halostatue/diff-lcs#65
  • Loading branch information
mpraglowski committed Jul 8, 2020
1 parent be7facf commit 2dec63d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Expand Up @@ -76,7 +76,7 @@ def formatter
got: FooEvent with data: {}
Data diff:
@@ -1,2 +1,2 @@
@@ -1 +1 @@
-{:foo=>"bar"}
+{}
})
Expand Down Expand Up @@ -106,7 +106,7 @@ def formatter
got: FooEvent with metadata: {}
Metadata diff:
@@ -1,2 +1,2 @@
@@ -1 +1 @@
-{:foo=>"bar"}
+{}
})
Expand All @@ -120,12 +120,12 @@ def formatter
got: FooEvent with metadata: {} data: {}
Metadata diff:
@@ -1,2 +1,2 @@
@@ -1 +1 @@
-{:bar=>"baz"}
+{}
Data diff:
@@ -1,2 +1,2 @@
@@ -1 +1 @@
-{:foo=>"bar"}
+{}
})
Expand All @@ -139,12 +139,12 @@ def formatter
got: FooEvent with metadata: {:baz=>"foo"} data: {:bar=>"baz"}
Metadata diff:
@@ -1,2 +1,2 @@
@@ -1 +1 @@
-{:bar=>"baz"}
+{:baz=>"foo"}
Data diff:
@@ -1,2 +1,2 @@
@@ -1 +1 @@
-{:foo=>"bar"}
+{:bar=>"baz"}
})
Expand Down
Expand Up @@ -159,7 +159,7 @@ def phraser

expect(matcher_.failure_message.to_s).to match(<<~EOS)
expected [#{expected.inspect}] to be applied, diff:
@@ -1,2 +1,2 @@
@@ -1 +1 @@
-[#{actual.inspect}]
+[#{expected.inspect}]
EOS
Expand All @@ -174,7 +174,7 @@ def phraser

expect(matcher_.failure_message_when_negated.to_s).to eq(<<~EOS)
expected [#{expected.inspect}] not to be applied, diff:
@@ -1,2 +1,2 @@
@@ -1 +1 @@
-[#{actual.inspect}]
+[#{expected.inspect}]
EOS
Expand Down
Expand Up @@ -223,7 +223,7 @@ def phraser

expect(matcher_.failure_message.to_s).to eq(<<~EOS)
expected [#{expected.inspect}] to be published, diff:
@@ -1,2 +1,2 @@
@@ -1 +1 @@
-[#{actual.inspect}]
+[#{expected.inspect}]
EOS
Expand All @@ -236,7 +236,7 @@ def phraser

expect(matcher_.failure_message_when_negated.to_s).to eq(<<~EOS)
expected [#{expected.inspect}] not to be published, diff:
@@ -1,2 +1,2 @@
@@ -1 +1 @@
-[#{actual.inspect}]
+[#{expected.inspect}]
EOS
Expand Down

0 comments on commit 2dec63d

Please sign in to comment.