Sha256: 51cbfafba5250e96f2167e21e1c7de656f284dc20eb1fd6e29abd8ad8519af2d
Contents?: true
Size: 845 Bytes
Versions: 3
Compression:
Stored size: 845 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.split("\n").sort actual = `bundle exec derailed exec --help`.split("\n").sort assert_equal( expected, actual, "Please update README.md:#{lineno}" ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
derailed_benchmarks-2.2.1 | test/derailed_test.rb |
derailed_benchmarks-2.2.0 | test/derailed_test.rb |
derailed_benchmarks-2.1.2 | test/derailed_test.rb |