Sha256: 95c3f91490e25974d4151386889b4a9cfb2968ffb769111b4ecdc4b42497ab93
Contents?: true
Size: 679 Bytes
Versions: 6
Compression:
Stored size: 679 Bytes
Contents
require 'assert' require 'assert/suite' require 'assert/view/base' require 'assert/runner' class Assert::Runner class UnitTests < Assert::Context desc "Assert::Runner" setup do @config = Factory.modes_off_config @suite = Assert::Suite.new(@config) @view = Assert::View::Base.new(StringIO.new("", "w+"), @suite) @runner = Assert::Runner.new(@config) end subject { @runner } should have_readers :config should have_imeths :run should "know its config" do assert_equal @config, subject.config end should "return an integer exit code" do assert_equal 0, subject.run(@suite, @view) end end end
Version data entries
6 entries across 6 versions & 1 rubygems