Skip to content

Commit e187552

Browse files
authored
Merge pull request #56 from cazwazacz/cazwazacz/add-statutory-instruments-thing-route
Add /statutory-instruments/:statutory_instrument_id
2 parents d72fe6f + 15f7a0c commit e187552

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
parliament-routes (0.6.9)
4+
parliament-routes (0.6.10)
55

66
GEM
77
remote: https://rubygems.org/
@@ -156,4 +156,4 @@ DEPENDENCIES
156156
sqlite3
157157

158158
BUNDLED WITH
159-
1.16.2
159+
1.16.3

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
get '/who-should-i-contact-with-my-issue', to: 'meta#who_should_i_contact_with_my_issue'
2727

2828
### Statutory Instruments ###
29-
# /statutory-instruments
3029
get '/statutory-instruments', to: 'statutory_instruments#index'
30+
get '/statutory-instruments/:statutory_instrument_id', to: 'statutory_instruments#show'
3131

3232
## Work Packages ##
3333
get '/work-packages', to: 'work_packages#index', as: :work_packages

lib/parliament/engine/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Parliament
22
module Engine
3-
VERSION = '0.6.9'.freeze
3+
VERSION = '0.6.10'.freeze
44
end
55
end

spec/router_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
RSpec.describe 'routing' do
44
it 'should have a specific number of routes inherited from the engine' do
55
# routes.rb currently has 186 routes, 2 routes exist on top of this in dummy application
6-
expect(Rails.application.routes.routes.size).to eq(194)
6+
expect(Rails.application.routes.routes.size).to eq(195)
77
end
88
end

0 commit comments

Comments
 (0)