Sha256: 72cfa7bc7d1592abc1caac9b8e44c4e7a1cbbf26b9bed7cfcf0e6972e7ffa0b1

Contents?: true

Size: 731 Bytes

Versions: 4

Compression:

Stored size: 731 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Hydra::Controller::CatalogControllerBehavior do
  
  before(:all) do
    @behavior = Hydra::Controller::CatalogControllerBehavior.deprecation_behavior
    Hydra::Controller::CatalogControllerBehavior.deprecation_behavior = :silence

    class CatalogTest < ApplicationController
      include Hydra::Controller::CatalogControllerBehavior
    end
    @catalog = CatalogTest.new
  end

  after(:all) do
    Hydra::Controller::CatalogControllerBehavior.deprecation_behavior = @behavior
  end
  
  it "should extend classes with the necessary Hydra modules" do
    CatalogTest.included_modules.should include(Hydra::AccessControlsEnforcement)
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hydra-head-4.1.3 test_support/spec/lib/catalog_spec.rb
hydra-head-4.1.2 test_support/spec/lib/catalog_spec.rb
hydra-head-4.1.1 test_support/spec/lib/catalog_spec.rb
hydra-head-4.1.0 test_support/spec/lib/catalog_spec.rb