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