Sha256: 7d8fb23c653dfc6d72234f98e1bd9919d944c91372601434acbec0bf958c784a
Contents?: true
Size: 602 Bytes
Versions: 5
Compression:
Stored size: 602 Bytes
Contents
require 'spec_helper' describe "Modules" do context "A custom module with a main-apps controller" do before { authorize_user(:as_admin) } it "should have a button in main_navigation, pointing to the configured controller" do Alchemy::Modules.register_module( { name: 'events', navigation: { icon: 'icon events', name: 'Events', controller: '/admin/events', action: 'index' } }) visit '/admin' click_on 'Events' expect(page).not_to have_content('Upps!') end end end
Version data entries
5 entries across 5 versions & 2 rubygems