Sha256: 62833c654cbc5219bbf50e83888d7c764051d9b3ab4005a219eb3b93c97d614a
Contents?: true
Size: 619 Bytes
Versions: 2
Compression:
Stored size: 619 Bytes
Contents
require 'spec_helper' describe 'curation_concerns/file_sets/show.json.jbuilder' do let(:file_set) { create(:file_set) } let(:solr_doc) { SolrDocument.new(file_set.to_solr) } let(:presenter) { CurationConcerns::FileSetPresenter.new(solr_doc, nil) } before do assign(:presenter, presenter) render end it "renders json of the curation_concern" do json = JSON.parse(rendered) expect(json['id']).to eq file_set.id expect(json['title']).to eq file_set.title expect(json).to have_key('label') expect(json).to have_key('description') expect(json).to have_key('creator') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
curation_concerns-1.5.0 | spec/views/curation_concerns/file_sets/show.json.jbuilder_spec.rb |
curation_concerns-1.4.0 | spec/views/curation_concerns/file_sets/show.json.jbuilder_spec.rb |