diff options
Diffstat (limited to 'spec/serializers/diff_file_entity_spec.rb')
-rw-r--r-- | spec/serializers/diff_file_entity_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/serializers/diff_file_entity_spec.rb b/spec/serializers/diff_file_entity_spec.rb index d1d44c67a7f..434a1569c79 100644 --- a/spec/serializers/diff_file_entity_spec.rb +++ b/spec/serializers/diff_file_entity_spec.rb @@ -41,14 +41,14 @@ describe DiffFileEntity do end context 'when view type is parallel' do - let(:entity) { described_class.new(diff_file, request: {}, view: 'inline') } + let(:entity) { described_class.new(diff_file, request: {}, view_type: 'inline') } it { is_expected.not_to include(:parallel_diff_lines) } it { is_expected.to include(:highlighted_diff_lines) } end context 'when view type is inline' do - let(:entity) { described_class.new(diff_file, request: {}, view: 'parallel') } + let(:entity) { described_class.new(diff_file, request: {}, view_type: 'parallel') } it { is_expected.to include(:parallel_diff_lines) } it { is_expected.not_to include(:highlighted_diff_lines) } |