Project

General

Profile

Revision b8b23c15

Added by David Davis over 6 years ago

Fixes #14322 - Fixing API route scope

View differences:

config/routes.rb
20 20

  
21 21
  resources :registries, :except => [:show]
22 22

  
23
  scope :foreman_docker, :path => '/docker' do
23
  scope path: '/docker', as: :foreman_docker do
24 24
    namespace :api, :defaults => { :format => 'json' } do
25 25
      scope "(:apiv)", :module => :v2, :defaults => { :apiv => 'v2' }, :apiv => /v2/,
26 26
                       :constraints => ApiConstraints.new(:version => 2) do
test/integration/container_steps_test.rb
1
require 'test_helper'
1
require 'integration_test_helper'
2 2

  
3 3
class ContainerStepsTest < ActionDispatch::IntegrationTest
4 4
  test 'shows a link to a new compute resource if none is available' do
test/integration/container_test.rb
1
require 'test_helper'
1
require 'integration_test_helper'
2 2

  
3 3
class ContainerIntegrationTest < ActionDispatch::IntegrationTest
4 4
  test 'redirects to a new compute resource if none is available' do

Also available in: Unified diff