Sha256: 53df8a0b4427b51109666a12f5bc124b2818181f6c79eacefc4f8574c9cf5d5c

Contents?: true

Size: 482 Bytes

Versions: 6

Compression:

Stored size: 482 Bytes

Contents

require File.join File.dirname(__FILE__), 'spec_helper'

describe ActsAsDashboard do
  before :each do
    class FoosController < ActionController::Base; end
  end

  it 'includes itself into classes that inherit from ActionController::Base' do
    FoosController.included_modules.should include ActsAsDashboard
  end

  it 'extends ActsAsDashboard::ClassMethods into classes that include it' do
    FoosController.extended_by.should include ActsAsDashboard::ClassMethods
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
acts_as_dashboard-0.4.1 spec/acts_as_dashboard_spec.rb
acts_as_dashboard-0.4.0 spec/acts_as_dashboard_spec.rb
acts_as_dashboard-0.3.3 spec/acts_as_dashboard_spec.rb
acts_as_dashboard-0.3.2 spec/acts_as_dashboard_spec.rb
acts_as_dashboard-0.3.0 spec/acts_as_dashboard_spec.rb
acts_as_dashboard-0.1.0 spec/acts_as_dashboard_spec.rb