Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow sdr#file_content routes to support file names with any characte…
…rs, including dots
- Loading branch information
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,7 @@ Metrics/LineLength: | |
|
||
Metrics/BlockLength: | ||
Enabled: false | ||
|
||
RSpec/ExpectActual: | ||
Exclude: | ||
- 'spec/routing/**' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'rails_helper' | ||
|
||
RSpec.describe SdrController, type: :routing do | ||
describe 'routing' do | ||
it 'routes to #content' do | ||
expect(get: '/v1/sdr/objects/druid:mk420bs7601/content/00004692.tif') | ||
.to route_to('sdr#file_content', druid: 'druid:mk420bs7601', filename: '00004692.tif') | ||
end | ||
end | ||
end |