Sha256: 8a37d5449814c4eb1f03e571a0a198bb8e37d5a49a0d44cd55f2f81cd9ea1bc9
Contents?: true
Size: 850 Bytes
Versions: 9
Compression:
Stored size: 850 Bytes
Contents
require 'spec_helper' RSpec.describe 'hyrax/file_sets/show.json.jbuilder' do let(:presenter) do instance_double(Hyrax::FileSetPresenter, id: '123', title: ['title'], label: '', creator: ['Janet'], depositor: '', date_uploaded: '', date_modified: '') end before do assign(:presenter, presenter) render end it "renders json of the curation_concern" do json = JSON.parse(rendered) expect(json['id']).to eq presenter.id expect(json['title']).to match_array presenter.title expected_fields = [:title, :label, :creator, :depositor, :date_uploaded, :date_modified] expected_fields.each do |field_symbol| expect(json).to have_key(field_symbol.to_s) end end end
Version data entries
9 entries across 9 versions & 1 rubygems