Skip to content

Commit b066ec4

Browse files
committed
fixed specs
1 parent 51dd3f7 commit b066ec4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/usage/extend/custom_engine_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Pages end
1111

1212
module Matestack::Ui::Core end
1313

14-
class ComponentTestController < ActionController::Base
14+
class EngineComponentTestController < ActionController::Base
1515
layout "application"
1616

1717
include Matestack::Ui::Core::ApplicationHelper
@@ -23,7 +23,7 @@ def my_action
2323
end
2424

2525
Rails.application.routes.append do
26-
get '/component_test', to: 'component_test#my_action', as: 'component_test_action'
26+
get '/engine_component_test', to: 'engine_component_test#my_action', as: 'engine_component_test_action'
2727
end
2828
Rails.application.reload_routes!
2929

@@ -65,7 +65,7 @@ def response
6565

6666
end
6767

68-
visit "/component_test"
68+
visit "/engine_component_test"
6969

7070
expect(page).to have_xpath('//div[@id="div-on-page"]/div[@id="core-component-1" and contains(.,"I\'m a static addon component!")]')
7171

@@ -121,7 +121,7 @@ def response
121121

122122
end
123123

124-
visit "/component_test"
124+
visit "/engine_component_test"
125125

126126
expect(page).to have_xpath('//div[@id="div-on-page"]/div[@id="core-component-1" and contains(.,"I\'m a static addon component!")]')
127127
expect(page).to have_xpath('//div[@id="div-on-page"]/div[@id="core-component-1-subcomponent-1" and contains(.,"I\'m a static addon sub component!")]')
@@ -160,7 +160,7 @@ def response
160160

161161
end
162162

163-
visit "/component_test"
163+
visit "/engine_component_test"
164164

165165
expect(page).to have_xpath('//div[@id="div-on-page"]/div[@id="some-core-component" and contains(.,"I\'m a static component!")]')
166166

0 commit comments

Comments
 (0)