Skip to content

Commit 7e23a07

Browse files
committed
Don't run lookbook during tests
1 parent 93ac54c commit 7e23a07

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

demo/config/routes.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
# Defines the root path route ("/")
1515
root "pages#index"
1616

17-
Rails.application.routes.draw do
18-
mount Lookbook::Engine, at: "/lookbook"
17+
if defined?(Lookbook)
18+
Rails.application.routes.draw do
19+
mount Lookbook::Engine, at: "/lookbook"
20+
end
1921
end
2022
end

0 commit comments

Comments
 (0)