hierarchy_resource_spec.rb 374 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
require 'spec_helper'

RSpec.describe Dspace::Resources::HierarchyResource, resource_kit: true do
  subject(:resource) { Dspace::Resources::HierarchyResource }

  it 'get all hierarchy' do
    expect(resource).to have_action(:all).that_handles(200).at_path('/rest/hierarchy').with_verb(:get) do |handled|
      expect(handled).to be_kind_of(Dspace::Site)
    end
  end

end