@@ -11,7 +11,7 @@ module Pages end
11
11
12
12
module Matestack ::Ui ::Core end
13
13
14
- class ComponentTestController < ActionController ::Base
14
+ class EngineComponentTestController < ActionController ::Base
15
15
layout "application"
16
16
17
17
include Matestack ::Ui ::Core ::ApplicationHelper
@@ -23,7 +23,7 @@ def my_action
23
23
end
24
24
25
25
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 '
27
27
end
28
28
Rails . application . reload_routes!
29
29
@@ -65,7 +65,7 @@ def response
65
65
66
66
end
67
67
68
- visit "/component_test "
68
+ visit "/engine_component_test "
69
69
70
70
expect ( page ) . to have_xpath ( '//div[@id="div-on-page"]/div[@id="core-component-1" and contains(.,"I\'m a static addon component!")]' )
71
71
@@ -121,7 +121,7 @@ def response
121
121
122
122
end
123
123
124
- visit "/component_test "
124
+ visit "/engine_component_test "
125
125
126
126
expect ( page ) . to have_xpath ( '//div[@id="div-on-page"]/div[@id="core-component-1" and contains(.,"I\'m a static addon component!")]' )
127
127
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
160
160
161
161
end
162
162
163
- visit "/component_test "
163
+ visit "/engine_component_test "
164
164
165
165
expect ( page ) . to have_xpath ( '//div[@id="div-on-page"]/div[@id="some-core-component" and contains(.,"I\'m a static component!")]' )
166
166
0 commit comments