Sha256: cbf254ec5764fd32de73194a72ca0e784cae8d542c73448e1902e2c450ea18f0

Contents?: true

Size: 830 Bytes

Versions: 10

Compression:

Stored size: 830 Bytes

Contents

describe Hyrax::StaticController, type: :controller do
  routes { Hyrax::Engine.routes }
  describe "#mendeley" do
    it "renders page" do
      get "mendeley"
      expect(response).to be_success
      expect(response).to render_template "layouts/homepage"
    end
    it "renders no layout with javascript" do
      get :mendeley, xhr: true
      expect(response).to be_success
      expect(response).not_to render_template "layouts/homepage"
    end
  end

  describe "#zotero" do
    it "renders page" do
      get "zotero"
      expect(response).to be_success
      expect(response).to render_template "layouts/homepage"
    end
    it "renders no layout with javascript" do
      get :zotero, xhr: true
      expect(response).to be_success
      expect(response).not_to render_template "layouts/homepage"
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 spec/controllers/hyrax/static_controller_spec.rb
hyrax-1.1.0 spec/controllers/hyrax/static_controller_spec.rb
hyrax-1.0.5 spec/controllers/hyrax/static_controller_spec.rb
hyrax-1.0.4 spec/controllers/hyrax/static_controller_spec.rb
hyrax-1.0.3 spec/controllers/hyrax/static_controller_spec.rb
hyrax-1.0.2 spec/controllers/hyrax/static_controller_spec.rb
hyrax-1.0.1 spec/controllers/hyrax/static_controller_spec.rb
hyrax-1.0.0.rc2 spec/controllers/hyrax/static_controller_spec.rb
hyrax-1.0.0.rc1 spec/controllers/hyrax/static_controller_spec.rb
test_hyrax-0.0.1.alpha spec/controllers/hyrax/static_controller_spec.rb