Sha256: 5c9f6f766b0d5c319ab4ab53f27a3d7d2caafb311a853a7013356300a72c64df
Contents?: true
Size: 647 Bytes
Versions: 3
Compression:
Stored size: 647 Bytes
Contents
require 'spec_helper' describe CurationConcerns::UrlHelper do 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
curation_concerns-0.8.0 | spec/helpers/url_helper_spec.rb |
curation_concerns-0.7.0 | spec/helpers/url_helper_spec.rb |
curation_concerns-0.6.0 | spec/helpers/url_helper_spec.rb |