File: other_test.rb

package info (click to toggle)
ruby-simplecov 0.22.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,500 kB
  • sloc: ruby: 5,550; makefile: 10
file content (26 lines) | stat: -rw-r--r-- 474 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# frozen_string_literal: true

require "bundler/setup"

begin
  require File.expand_path("simplecov_config", __dir__)
rescue LoadError
  warn "No SimpleCov config file found!"
end

require "minitest/autorun"
require "faked_project/some_class"

class OtherTest < Minitest::Test
  def setup
    @instance = SomeClass.new("foo")
  end

  def test_reverse
    assert_equal "oof", @instance.reverse
  end

  def test_comparison
    assert @instance.compare_with("foo")
  end
end