diff options
author | DJ Mountney <david@twkie.net> | 2016-05-10 16:19:16 -0700 |
---|---|---|
committer | DJ Mountney <david@twkie.net> | 2016-05-10 16:19:16 -0700 |
commit | 0e0caf4d17c28b6b0f3488b25efa265ce2804cc4 (patch) | |
tree | 13d7c57892acf74c88b41fbac0188383169f20dd /spec/routing/routing_spec.rb | |
parent | 160ef66d1bbbbc593516c7575d6b02ddb019c000 (diff) | |
download | gitlab-ce-0e0caf4d17c28b6b0f3488b25efa265ce2804cc4.tar.gz |
Add tests for the health check feature
Diffstat (limited to 'spec/routing/routing_spec.rb')
-rw-r--r-- | spec/routing/routing_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/routing/routing_spec.rb b/spec/routing/routing_spec.rb index 1527eddfa48..e4dfd4bca35 100644 --- a/spec/routing/routing_spec.rb +++ b/spec/routing/routing_spec.rb @@ -243,3 +243,13 @@ describe "Groups", "routing" do expect(get('/1')).to route_to('namespaces#show', id: '1') end end + +describe HealthCheckController, 'routing' do + it 'to #index' do + expect(get('/health_check')).to route_to('health_check#index') + end + + it 'also supports passing checks in the url' do + expect(get('/health_check/email')).to route_to('health_check#index', checks: 'email') + end +end |