Sha256: 8ab450c84199ee13958821d45cf186938ed7bdfd3a87b5e438b7e7a196f8663e

Contents?: true

Size: 791 Bytes

Versions: 2

Compression:

Stored size: 791 Bytes

Contents

require 'spec_helper'
require 'support/integration_spec_helper'

describe "Modules" do

  before(:all) do
    FactoryGirl.build(:admin_user).save_without_session_maintenance
  end
  describe "a custom module with a main-apps controller" do
    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'
          }
        })
      login_into_alchemy
      without_access_control do
        visit '/alchemy/admin'
        click_on 'Events'
        page.should_not have_content('Upps!')
      end
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alchemy_cms-2.2.rc8 spec/integration/admin/modules_integration_spec.rb
alchemy_cms-2.2.rc7 spec/integration/admin/modules_integration_spec.rb