Sha256: 207f8545c6fb108f9209e1c9bd4800ee7ee47cfd61d88c062cc442023305d928
Contents?: true
Size: 731 Bytes
Versions: 1
Compression:
Stored size: 731 Bytes
Contents
require 'assert' require 'assert/view/base' require 'assert/suite' module Assert::View class BaseTest < Assert::Context desc "the view base" setup do @view = Assert::View::Base.new(Assert::Suite.new, StringIO.new("", "w+")) end subject{ @view } INSTANCE_METHODS = [ :render, :print_runtime_result, :suite, :options ] INSTANCE_METHODS.each do |method| should "respond to the instance method ##{method}" do assert_respond_to subject, method end end CLASS_METHODS = [ :options ] CLASS_METHODS.each do |method| should "respond to the class method ##{method}" do assert_respond_to subject.class, method end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
assert-0.1.0 | test/view_test.rb |