Welcome to mirror list, hosted at ThFree Co, Russian Federation.

aspect_serializer_spec.rb « export « serializers « spec - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eba297f194aba3ef1aaccca1d63072deb75f16db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

describe Export::AspectSerializer do
  let(:aspect) { FactoryGirl.create(:aspect) }
  let(:serializer) { Export::AspectSerializer.new(aspect) }

  it "has aspect attributes" do
    expect(serializer.attributes).to eq(
      name:         aspect.name,
      chat_enabled: aspect.chat_enabled
    )
  end
end