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

Version Path
alchemy_cms-2.9.1 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.9.0 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.8.3 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.7.5 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.6.3 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.7.4 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.8.2 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.8.1 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.7.3 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.7.2 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.7.1 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.7.0 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.6.2.1 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.6.2 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.6.1 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.6.0 spec/features/admin/modules_integration_spec.rb
alchemy_cms-2.6.0.rc5 spec/features/admin/modules_integration_spec.rb