Sha256: 0aa2f620b67d739f2bc7723b6d9d3a6e9612f771391f58957275e5414aad13ba
Contents?: true
Size: 1017 Bytes
Versions: 1
Compression:
Stored size: 1017 Bytes
Contents
# frozen_string_literal: true require_relative "../spec_helper" module SpaceCheckstyleReports describe SpaceCheckstyleReports::Severity do let(:data) do [ [:ignore, :ignore, true], [:ignore, :info, true], [:ignore, :warning, true], [:ignore, :error, true], [:info, :ignore, false], [:info, :info, true], [:info, :warning, true], [:info, :error, true], [:warning, :ignore, false], [:warning, :info, false], [:warning, :warning, true], [:warning, :error, true], [:error, :ignore, false], [:error, :info, false], [:error, :warning, false], [:error, :error, true], ] end context "<=" do it do data.each do |d| base, other, expected = d severity = SpaceCheckstyleReports::Severity.new(base) expect(severity <= other).to eq(expected) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danger-space_checkstyle_reports-1.0.1 | spec/lib/severity_spec.rb |