Sha256: bac4d506925b071abc90bc2b8161e0bb63396054e00e146b5c8e2b4865c7ee19

Contents?: true

Size: 1.48 KB

Versions: 47

Compression:

Stored size: 1.48 KB

Contents

# Copyright (C) 2013-2014  Kouhei Sutou <kou@clear-code.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

require "grntest/executors/base-executor"

class TestBaseExecutor < Test::Unit::TestCase
  def setup
    @context = Grntest::ExecutionContext.new
    @executor = Grntest::Executors::BaseExecutor.new(@context)
  end

  class TestErrorLogLevel < self
    data("emergency" => :emergency,
         "alert"     => :alert,
         "critical"  => :critical,
         "error"     => :error,
         "warning"   => :warning)
    def test_important_log_level(level)
      assert do
        @executor.send(:important_log_level?, level)
      end
    end

    data("notice"  => :notice,
         "info"    => :information,
         "debug"   => :debug,
         "dump"    => :dump)
    def test_not_important_log_level(level)
      assert do
        not @executor.send(:important_log_level?, level)
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
grntest-1.8.0 test/executors/test-base-executor.rb
grntest-1.7.9 test/executors/test-base-executor.rb
grntest-1.7.8 test/executors/test-base-executor.rb
grntest-1.7.7 test/executors/test-base-executor.rb
grntest-1.7.6 test/executors/test-base-executor.rb
grntest-1.7.5 test/executors/test-base-executor.rb
grntest-1.7.4 test/executors/test-base-executor.rb
grntest-1.7.3 test/executors/test-base-executor.rb
grntest-1.7.2 test/executors/test-base-executor.rb
grntest-1.7.1 test/executors/test-base-executor.rb
grntest-1.7.0 test/executors/test-base-executor.rb
grntest-1.6.9 test/executors/test-base-executor.rb
grntest-1.6.8 test/executors/test-base-executor.rb
grntest-1.6.7 test/executors/test-base-executor.rb
grntest-1.6.6 test/executors/test-base-executor.rb
grntest-1.6.5 test/executors/test-base-executor.rb
grntest-1.6.4 test/executors/test-base-executor.rb
grntest-1.6.3 test/executors/test-base-executor.rb
grntest-1.6.2 test/executors/test-base-executor.rb
grntest-1.6.1 test/executors/test-base-executor.rb