Sha256: f572889b1f463de79c69fe813de36ca1413449fccb4f7205a9e9e52a31c48307
Contents?: true
Size: 1.76 KB
Versions: 5
Compression:
Stored size: 1.76 KB
Contents
require 'assert' require 'assert/suite' require 'assert/view/base' require 'stringio' module Assert::View class BaseTest < Assert::Context desc "the base view" setup do @view = Assert::View::Base.new(Assert::Suite.new, StringIO.new("", "w+")) end subject{ @view } should have_accessors :suite, :output_io, :runtime_result_callback should have_class_method :template should have_instance_methods :run_tests, :handle_runtime_result should have_instance_methods :run_time, :runner_seed, :count, :tests? should have_instance_methods :suite_contexts, :ordered_suite_contexts should have_instance_methods :suite_files, :ordered_suite_files should have_instance_methods :show_result_details?, :detailed_results, :all_results_for should have_instance_methods :ocurring_result_types, :result_summary_msg should have_instance_methods :all_pass?, :all_pass_result_summary_msg, :to_sentence should have_instance_methods :capture_output_start_msg, :capture_output_end_msg # options stuff should have_instance_method :options should have_class_method :options # renderer stuff should have_instance_method :render should have_class_method :helper end class BaseOptionsTest < Assert::Context desc "options for the base view" subject do Assert::View::Base.options end should "be an Options::Base object" do assert_kind_of Assert::Options::Base, subject end should "default its result abbreviations" do assert_equal '.', subject.default_pass_abbrev assert_equal 'F', subject.default_fail_abbrev assert_equal 'I', subject.default_ignore_abbrev assert_equal 'S', subject.default_skip_abbrev assert_equal 'E', subject.default_error_abbrev end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
assert-view-0.6.0 | test/base_test.rb |
assert-view-0.5.0 | test/base_test.rb |
assert-view-0.4.2 | test/base_test.rb |
assert-view-0.4.1 | test/base_test.rb |
assert-view-0.4.0 | test/base_test.rb |