test/unit/view_helpers_tests.rb in assert-2.17.0 vs test/unit/view_helpers_tests.rb in assert-2.18.0

- old
+ new

@@ -6,11 +6,10 @@ require "assert/config_helpers" require "assert/result" require "assert/view" module Assert::ViewHelpers - class UnitTests < Assert::Context desc "Assert::ViewHelpers" setup do test_opt_val = @test_opt_val = Factory.string @helpers_class = Class.new do @@ -43,11 +42,10 @@ other_val = Factory.integer helpers.test_opt new_val, other_val assert_equal [new_val, other_val], helpers.test_opt end - end class InitTests < UnitTests desc "when init" setup do @@ -130,11 +128,10 @@ block.call(subject.result_summary_msg(result_sym), result_sym) end exp = subject.to_sentence(items) assert_equal exp, subject.results_summary_sentence(&block) end - end class AnsiTests < UnitTests desc "Ansi" subject{ Ansi } @@ -154,11 +151,10 @@ assert_equal "", subject.code_for(*styles) styles = [] assert_equal "", subject.code_for(*styles) end - end class AnsiInitTests < UnitTests desc "when mixed in on a view" setup do @@ -194,9 +190,7 @@ Assert.stub(subject, "#{result_type}_styles"){ styles } exp_code = Assert::ViewHelpers::Ansi.code_for(*styles) exp = exp_code + msg + Assert::ViewHelpers::Ansi.code_for(:reset) assert_equal exp, subject.ansi_styled_msg(msg, result_type) end - end - end