Sha256: 022cc543e6795e7f6c858a377a34e1ddb738f4346fe96fb29dfee13e3402c7e7
Contents?: true
Size: 653 Bytes
Versions: 37
Compression:
Stored size: 653 Bytes
Contents
Given /^the engine is mounted on a non standard path$/ do Rails.application.routes.draw do mount Locomotive::Engine => '/my-custom-path', as: 'locomotive' match '/foo' => 'foo#index', as: 'foo' end end Then /^I should be able to access the backend$/ do # Ensure we can access the backend visit '/my-custom-path' page.should have_content 'LocomotiveCMS' # Ensure we can update the homepage content within('#pages-list') do click_link 'Home page' end click_button 'Save' page.should have_content 'Page was successfully updated' # Reset the routes back to normal once we are done Rails.application.reload_routes! end
Version data entries
37 entries across 37 versions & 2 rubygems