Sha256: 46a27acaf0b7d590633bab4e2b899ea0789ab373d8b99a9b4c362ffe54201ef4
Contents?: true
Size: 1.22 KB
Versions: 5
Compression:
Stored size: 1.22 KB
Contents
require 'assert' require 'assert/view/default_view' require 'assert/runner' require 'assert/suite' module Assert class BaseTests < Assert::Context desc "the Assert module" subject { Assert } should have_imeths :view, :suite, :runner, :config, :configure, :init should "know its config singleton" do assert_same Config, subject.config end should "map its view, suite and runner to its config" do assert_same subject.config.view, subject.view assert_same subject.config.suite, subject.suite assert_same subject.config.runner, subject.runner end # Note: don't really need to explicitly test the configure/init meths # nothing runs as expected if they aren't working end class ConfigTests < Assert::Context desc "the Assert Config singleton" subject { Config } should have_imeths :suite, :view, :runner, :test_dir, :test_helper should have_imeths :runner_seed, :show_output, :halt_on_fail, :debug should have_imeths :apply should "default the view, suite, and runner" do assert_kind_of Assert::View::DefaultView, subject.view assert_kind_of Assert::Suite, subject.suite assert_kind_of Assert::Runner, subject.runner end end end
Version data entries
5 entries across 5 versions & 1 rubygems