Sha256: 497acfeaf7945d80fb54f76386de984eddddbc2b13b851b4633635f625d8a0db
Contents?: true
Size: 692 Bytes
Versions: 2
Compression:
Stored size: 692 Bytes
Contents
require 'test_helper' class CliTest < Test::Unit::TestCase COMMAND = "ruby -rubygems -Ilib bin/deadweight" FULL_COMMAND = "#{COMMAND} -s test/fixtures/style.css test/fixtures/index.html 2>/dev/null" should "output unused selectors on STDOUT" do assert_correct_selectors_in_output(`#{FULL_COMMAND}`) end should "accept CSS rules on STDIN" do assert `echo ".something { display: block; }" | #{FULL_COMMAND}`.include?('.something') end should "accept a [-r | --root] argument and relative paths" do %w(-r --root).each do |arg| assert_correct_selectors_in_output(`#{COMMAND} #{arg} test/fixtures -s /style.css /index.html 2>/dev/null`) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
deadweight-0.1.3 | test/cli_test.rb |
deadweight-0.1.2 | test/cli_test.rb |