Sha256: 100c0ce3e914f5a5fd5ac3e36b775b3999bac2bd10f0f6eae84fa2bcd893236b
Contents?: true
Size: 656 Bytes
Versions: 17
Compression:
Stored size: 656 Bytes
Contents
require 'spec_helper' describe "Modules" do context "A custom module with a main-apps controller" do before do load_authorization_rules authorize_as_admin end 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' page.should_not have_content('Upps!') end end end
Version data entries
17 entries across 17 versions & 1 rubygems