Sha256: 70b188ad3479981e2e538f6943fdd5f33c782da59e74b5682d67f06ba1175d5a

Contents?: true

Size: 813 Bytes

Versions: 8

Compression:

Stored size: 813 Bytes

Contents

describe StaticController, type: :controller do
  routes { Sufia::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
      xhr :get, :mendeley
      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
      xhr :get, :zotero
      expect(response).to be_success
      expect(response).not_to render_template "layouts/homepage"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sufia-7.1.0 spec/controllers/static_controller_spec.rb
sufia-7.0.0 spec/controllers/static_controller_spec.rb
sufia-7.0.0.rc2 spec/controllers/static_controller_spec.rb
sufia-7.0.0.rc1 spec/controllers/static_controller_spec.rb
sufia-7.0.0.beta4 spec/controllers/static_controller_spec.rb
sufia-7.0.0.beta3 spec/controllers/static_controller_spec.rb
sufia-7.0.0.beta2 spec/controllers/static_controller_spec.rb
sufia-7.0.0.beta1 spec/controllers/static_controller_spec.rb