Sha256: 47fffe9a3d5c1b2477c10fc2ce03ca19d6548db4922e33b88e8265305a2b872b

Contents?: true

Size: 713 Bytes

Versions: 14

Compression:

Stored size: 713 Bytes

Contents

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


describe Hydra::Controller do
  before(:all) do
    class HydraUiControllerTest
    end
  end
  after :all do
    Object.send(:remove_const, :HydraUiControllerTest)
  end

  it "should add the necessary helpers to classes that include it" do
    HydraUiControllerTest.expects(:helper).with(:hydra_fedora_metadata)
    HydraUiControllerTest.expects(:helper).with(:generic_content_objects)
    HydraUiControllerTest.expects(:helper).with(:hydra_uploader)
    HydraUiControllerTest.expects(:helper).with(:article_metadata)
    HydraUiControllerTest.stubs(:before_filter)
    HydraUiControllerTest.send(:include, Hydra::UI::Controller)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hydra-head-4.1.3 test_support/spec/controllers/hydra_ui_controller_spec.rb
hydra-head-4.1.2 test_support/spec/controllers/hydra_ui_controller_spec.rb
hydra-head-4.1.1 test_support/spec/controllers/hydra_ui_controller_spec.rb
hydra-head-4.1.0 test_support/spec/controllers/hydra_ui_controller_spec.rb
hydra-head-4.0.3 test_support/spec/controllers/hydra_ui_controller_spec.rb
hydra-head-4.0.2 test_support/spec/controllers/hydra_ui_controller_spec.rb
hydra-head-4.0.1 test_support/spec/controllers/hydra_ui_controller_spec.rb
hydra-head-4.0.0 test_support/spec/controllers/hydra_ui_controller_spec.rb
hydra-head-4.0.0.rc6 test_support/spec/controllers/hydra_ui_controller_spec.rb
hydra-head-4.0.0.rc5 test_support/spec/controllers/hydra_ui_controller_spec.rb
hydra-head-4.0.0.rc4 test_support/spec/controllers/hydra_ui_controller_spec.rb
hydra-head-4.0.0.rc3 test_support/spec/controllers/hydra_ui_controller_spec.rb
hydra-head-4.0.0.rc2 test_support/spec/controllers/hydra_ui_controller_spec.rb
hydra-head-3.3.0 test_support/spec/controllers/hydra_ui_controller_spec.rb