Sha256: 17b16891856b5c91e09443a0c0e1afc5192b599dbd675b1e406a0523e4a439b7
Contents?: true
Size: 692 Bytes
Versions: 2
Compression:
Stored size: 692 Bytes
Contents
require 'spec_helper' describe CurationConcerns::UrlHelper do before do GenericWork.destroy_all end let(:profile) { ["{\"datastreams\":{}}"] } let(:work) { create(:generic_work) } let(:document) { SolrDocument.new(work.to_solr) } subject { helper.url_for_document document } it { is_expected.to eq "/concern/generic_works/#{work.id}" } it 'uses the curation_concern namespace' do expect(helper.url_for_document document).to eq "/concern/generic_works/#{work.id}" end context 'when document is a FileSet' do let(:file) { create(:file_set) } subject { helper.url_for_document file } it { is_expected.to eq "/concern/file_sets/#{file.id}" } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
curation_concerns-0.3.0 | spec/helpers/url_helper_spec.rb |
curation_concerns-0.2.0 | spec/helpers/url_helper_spec.rb |