summaryrefslogtreecommitdiff
path: root/spec/serializers/event_entity_spec.rb
blob: bb54597c96742a1d4a4019cc1e9c9db6c3620df2 (plain)
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