Sha256: ab5dcd12eb96664d0027e673309a4190d5cdaed8810f80c10c0ee4ae9979e2e7

Contents?: true

Size: 552 Bytes

Versions: 24

Compression:

Stored size: 552 Bytes

Contents

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


describe Hydra::Controller do
  before(:all) do
    class HydraControllerTest
    end
  end
  
  it "should add the necessary helpers to classes that include it" do
    HydraControllerTest.expects(:helper).with(:hydra_assets)
    HydraControllerTest.expects(:helper).with(:hydra_fedora_metadata)
    HydraControllerTest.expects(:helper).with(:generic_content_objects)
    HydraControllerTest.stubs(:before_filter)
    HydraControllerTest.send(:include, Hydra::Controller)
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
hydra-head-3.2.2 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.2.1 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.2.0 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.2.0.pre3 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.2.0.pre2 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.2.0.pre1 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.1.5 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.1.4 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.1.3 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.1.2 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.1.1 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.1.0 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.1.0.rc2 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.1.0.rc1 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.1.0.pre5 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.1.0.pre4 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.1.0.pre3 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.0.1 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.1.0.pre2 test_support/spec/controllers/hydra_controller_spec.rb
hydra-head-3.0.0 test_support/spec/controllers/hydra_controller_spec.rb