Sha256: 726cf0ed5f1c2feaddf9327b78295f43615da97c6a5dabc40ed2202feb239be9

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class ContextTest < Minitest::Test
  def setup
    @line_number = GitDiff::LineNumber.new(0, 0)
    @content = "some content"
    @context = GitDiff::Line::Context.new(@content, @line_number)
  end

  def test_addition_is_false
    refute @context.addition?
  end

  def test_deletion_is_false
    refute @context.deletion?
  end

  def test_to_s_returns_the_content
    assert_equal @content, @context.to_s
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git_diff-0.4.3 test/line/context_test.rb