Sha256: 0a04394ec29c85f97073c6887f67fbd3a7bbe9daa284bc1d3a25e1ea139f7796
Contents?: true
Size: 791 Bytes
Versions: 2
Compression:
Stored size: 791 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class DerailedBenchmarksTest < ActiveSupport::TestCase test "truth" do assert_kind_of Module, DerailedBenchmarks end test "gem_is_bundled?" do assert DerailedBenchmarks.gem_is_bundled?("rack") refute DerailedBenchmarks.gem_is_bundled?("wicked") end test "readme contains correct output" do readme_path = File.join(__dir__, "..", "README.md") lines = File.foreach(readme_path) lineno = 1 expected = lines.lazy.drop_while { |line| lineno += 1 line != "$ bundle exec derailed exec --help\n" }.drop(1).take_while { |line| line != "```\n" }.force.join assert_equal( expected, `bundle exec derailed exec --help`, "Please update README.md:#{lineno}" ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
derailed_benchmarks-2.1.1 | test/derailed_test.rb |
derailed_benchmarks-2.1.0 | test/derailed_test.rb |