Sha256: a636ef8059f29365d5ce864c62906343e87758cac853af667e12ddb01b212135
Contents?: true
Size: 834 Bytes
Versions: 6
Compression:
Stored size: 834 Bytes
Contents
require File.dirname(__FILE__) + '/../../../../../test/test_helper' class StaticTest < Zena::Unit::TestCase context 'A Skin' do setup do login(:lion) end subject do secure(Node) { nodes(:wikiSkin) } end should 'have z_static prop' do subject.z_static = 'foo' assert_equal 'foo', subject.prop['z_static'] end should 'allow brick-skin values' do assert subject.update_attributes(:z_static => 'static-blog') end should 'allow nil values' do assert subject.update_attributes(:z_static => 'static-blog') assert subject.update_attributes(:z_static => nil) end should 'not allow any value' do assert !subject.update_attributes(:z_static => '../foo-/bar/..') assert_equal 'invalid', subject.errors[:z_static] end end # A Skin end
Version data entries
6 entries across 6 versions & 1 rubygems