Sha256: 2571f3bca6eb10f1f6209148f8207bd24859c1e47cd1ec799fdf71c9c6f25cf9
Contents?: true
Size: 664 Bytes
Versions: 21
Compression:
Stored size: 664 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 '/alchemy/admin' click_on 'Events' page.should_not have_content('Upps!') end end end
Version data entries
21 entries across 21 versions & 1 rubygems