Skip to content

Commit f1d2f20

Browse files
committed
chore: Increase coverage of visitor branches
Some route visitor branches were not covered by tests before.
1 parent a1e173c commit f1d2f20

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spec/rails/rfc6570/visitor_spec.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,24 @@
2020
it { is_expected.to eq %w[/ path / path] }
2121
end
2222

23+
describe '/path.:format' do
24+
let(:path) { '/path.:format' }
25+
26+
it { is_expected.to eq %w[/ path . {format}] }
27+
end
28+
2329
describe '/:title' do
2430
let(:path) { '/:title' }
2531

2632
it { is_expected.to eq %w[/ {title}] }
2733
end
2834

35+
describe '/:title.html' do
36+
let(:path) { '/:title.html' }
37+
38+
it { is_expected.to eq %w[/ {title} . html] }
39+
end
40+
2941
describe '/:title(.:format)' do
3042
let(:path) { '/:title(.:format)' }
3143

0 commit comments

Comments
 (0)