Skip to content

Commit 1567ce6

Browse files
committed
Fix code style
1 parent b2fa6d8 commit 1567ce6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

spec/jekyll-include-tag/tag_spec.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,24 @@
2828
context "building the key" do
2929
it "builds the key" do
3030
key = subject.send(:key, "foo.html", "foo" => "bar", "foo2" => "bar2")
31+
params = { "foo" => "bar", "foo2" => "bar2" }
3132
expect(key).to eql(
32-
subject.send(:digest, "foo.html".hash, subject.send(:quick_hash, { "foo" => "bar", "foo2" => "bar2" }))
33+
subject.send(:digest, "foo.html".hash, subject.send(:quick_hash, params))
3334
)
3435
end
3536

3637
it "builds the key based on the path" do
3738
key = subject.send(:key, "foo2.html", "foo" => "bar", "foo2" => "bar2")
39+
params = { "foo" => "bar", "foo2" => "bar2" }
3840
expect(key).to eql(
39-
subject.send(:digest, "foo2.html".hash, subject.send(:quick_hash, { "foo" => "bar", "foo2" => "bar2" }))
41+
subject.send(:digest, "foo2.html".hash, subject.send(:quick_hash, params))
4042
)
4143
end
4244

4345
it "builds the key based on the params" do
4446
key = subject.send(:key, "foo2.html", "foo" => "bar")
45-
expect(key).to eql(subject.send(:digest, "foo2.html".hash, subject.send(:quick_hash, { "foo" => "bar" })))
47+
params = { "foo" => "bar" }
48+
expect(key).to eql(subject.send(:digest, "foo2.html".hash, subject.send(:quick_hash, params)))
4649
end
4750
end
4851

0 commit comments

Comments
 (0)