Sha256: 4cd84c9524b8a1a7ed5620414ec7a1b5ef6c213d23050c81f257c9ae977bc265
Contents?: true
Size: 769 Bytes
Versions: 2
Compression:
Stored size: 769 Bytes
Contents
require "assert" require 'xmlss/style/protection' class Xmlss::Style::Protection class UnitTests < Assert::Context desc "Xmlss::Style::Protection" before { @sp = Xmlss::Style::Protection.new } subject { @sp } should have_class_method :writer should have_accessor :protect should have_instance_methods :protected? should "know its writer" do assert_equal :protection, subject.class.writer end should "set it's defaults" do assert_equal false, subject.protected? end should "set attrs at init time" do sp = Xmlss::Style::Protection.new(true) assert sp.protected? end should "set attrs after init time" do subject.protect = true assert subject.protected? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xmlss-1.0.1 | test/unit/style/protection_tests.rb |
xmlss-1.0.0 | test/unit/style/protection_tests.rb |