Sha256: 8c29a6b235f6be043bb9768fb363dbb5b0f474964d6f5ca43f01dddb978c744e
Contents?: true
Size: 885 Bytes
Versions: 37
Compression:
Stored size: 885 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') # # These format tests also broke things in the regular testsuite. # See ./list_options_test.rb # # Therefore, here are some integration tests: # describe ::Inch::CLI::Command::List do before do Dir.chdir fixture_path(:simple) @command = "bundle exec inch stats" end def assert_parsed_output(parsed) assert parsed.size > 0 assert parsed["grade_lists"] assert parsed["scores"] assert parsed["priorities"] end it "should run with --no-private switch" do out = %x|#{@command} --format json| refute out.empty?, "there should be some output" assert_parsed_output JSON[out] end it "should run with --no-protected switch" do out = %x|#{@command} --format yaml| refute out.empty?, "there should be some output" assert_parsed_output YAML.load(out) end end
Version data entries
37 entries across 37 versions & 1 rubygems