diff options
Diffstat (limited to 'spec/serializers/project_serializer_spec.rb')
-rw-r--r-- | spec/serializers/project_serializer_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/serializers/project_serializer_spec.rb b/spec/serializers/project_serializer_spec.rb index 22f958fc17f..e40b8e466a5 100644 --- a/spec/serializers/project_serializer_spec.rb +++ b/spec/serializers/project_serializer_spec.rb @@ -1,12 +1,12 @@ # frozen_string_literal: true -require 'spec_helper' +require "spec_helper" describe ProjectSerializer do set(:project) { create(:project) } - let(:provider_url) { 'http://provider.com' } + let(:provider_url) { "http://provider.com" } - context 'when serializer option is :import' do + context "when serializer option is :import" do subject do described_class.new.represent(project, serializer: :import, provider_url: provider_url) end @@ -15,16 +15,16 @@ describe ProjectSerializer do allow(ProjectImportEntity).to receive(:represent) end - it 'represents with ProjectImportEntity' do + it "represents with ProjectImportEntity" do subject expect(ProjectImportEntity) .to have_received(:represent) - .with(project, serializer: :import, provider_url: provider_url, request: an_instance_of(EntityRequest)) + .with(project, serializer: :import, provider_url: provider_url, request: an_instance_of(EntityRequest)) end end - context 'when serializer option is omitted' do + context "when serializer option is omitted" do subject do described_class.new.represent(project) end @@ -33,12 +33,12 @@ describe ProjectSerializer do allow(ProjectEntity).to receive(:represent) end - it 'represents with ProjectEntity' do + it "represents with ProjectEntity" do subject expect(ProjectEntity) .to have_received(:represent) - .with(project, request: an_instance_of(EntityRequest)) + .with(project, request: an_instance_of(EntityRequest)) end end end |