Sha256: 4c0d14324135659e659af3f813712ace324279d890fa49c10ebc653e4ce8fb21

Contents?: true

Size: 828 Bytes

Versions: 10

Compression:

Stored size: 828 Bytes

Contents

require 'spec_helper'

RSpec.describe Hyrax::Admin::WorkflowsController do
  describe "#index" do
    before do
      expect(controller).to receive(:authorize!).with(:read, :admin_dashboard).and_return(true)
    end
    it "is successful" do
      expect(controller).to receive(:add_breadcrumb).with('Home', root_path)
      expect(controller).to receive(:add_breadcrumb).with('Administration', admin_path)
      expect(controller).to receive(:add_breadcrumb).with('Tasks', '#')
      expect(controller).to receive(:add_breadcrumb).with('Review Submissions', "/admin/workflows")

      get :index
      expect(response).to be_successful
      expect(assigns[:status_list]).to be_kind_of Hyrax::Workflow::StatusListService
      expect(assigns[:published_list]).to be_kind_of Hyrax::Workflow::StatusListService
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

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