Sha256: 8bb34c6aae35d70561f135c5422b27f94c27349a04c208e7742f9b3e852e4213
Contents?: true
Size: 680 Bytes
Versions: 8
Compression:
Stored size: 680 Bytes
Contents
require 'assert' require 'assert/suite' require 'assert/view/base' require 'assert/runner' class Assert::Runner class BasicTests < Assert::Context desc "a basic 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
8 entries across 8 versions & 1 rubygems