event_entity_spec.rb 279 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 12 13 require 'spec_helper' describe EventEntity do subject { described_class.represent(create(:event)).as_json } it 'exposes author' do expect(subject).to include(:author) end it 'exposes core elements of event' do expect(subject).to include(:updated_at) end end