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

Version Path
locomotivecms-3.0.0.rc3 features/step_definitions/backoffice/mounting_steps.rb
locomotivecms-3.0.0.rc2 features/step_definitions/backoffice/mounting_steps.rb
locomotivecms-3.0.0.rc1 features/step_definitions/backoffice/mounting_steps.rb
locomotivecms-3.0.0.pre.beta.1 features/step_definitions/backoffice/mounting_steps.rb
locomotivecms-3.0.0.pre.alpha.3 features/step_definitions/backoffice/mounting_steps.rb
locomotive_cms-2.5.7 features/step_definitions/backoffice/mounting_steps.rb
locomotivecms-3.0.0.pre.alpha.2 features/step_definitions/backoffice/mounting_steps.rb
locomotivecms-3.0.0.pre.alpha features/step_definitions/backoffice/mounting_steps.rb
locomotive_cms-2.5.6 features/step_definitions/backoffice/mounting_steps.rb
locomotive_cms-2.5.6.rc2 features/step_definitions/backoffice/mounting_steps.rb
locomotive_cms-2.5.6.rc1 features/step_definitions/backoffice/mounting_steps.rb
locomotive_cms-2.5.5 features/step_definitions/backoffice/mounting_steps.rb
locomotive_cms-2.5.4 features/step_definitions/backoffice/mounting_steps.rb
locomotive_cms-2.5.3 features/step_definitions/backoffice/mounting_steps.rb
locomotive_cms-2.5.2 features/step_definitions/backoffice/mounting_steps.rb
locomotive_cms-2.5.1 features/step_definitions/backoffice/mounting_steps.rb
locomotive_cms-2.5.0 features/step_definitions/backoffice/mounting_steps.rb
locomotive_cms-2.5.0.rc3 features/step_definitions/backoffice/mounting_steps.rb
locomotive_cms-2.5.0.rc2 features/step_definitions/backoffice/mounting_steps.rb
locomotive_cms-2.5.0.rc1 features/step_definitions/backoffice/mounting_steps.rb