Skip to content

Commit 6900d76

Browse files
committed
Fixes default layer headers test
1 parent 272c18b commit 6900d76

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/layer/connection_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
end
1313

1414
it "should return a connection containing default layer headers" do
15-
expect(@conn.headers).to include(@layer.default_layer_headers)
15+
# Remove If-None-Match header since it's always going to be random
16+
# and we can't compare it
17+
default_headers = @layer.default_layer_headers.reject{|k, v| k == 'If-None-Match'}
18+
expect(@conn.headers).to include(default_headers)
19+
expect(@conn.headers).to include("If-None-Match")
1620
end
1721

1822
it "should use custom api errors middleware" do

0 commit comments

Comments
 (0)