Sha256: dbe4a8bc0d246e7d872fb83ba695243dedf8a02ecaa33aa26a837ac7ef536fa8
Contents?: true
Size: 639 Bytes
Versions: 3
Compression:
Stored size: 639 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' require 'netzke-core' describe Netzke::Base do it "should keep config independent inside class hierarchy" do class Parent < Netzke::Base class_attribute :with_feature self.with_feature = "yes" end class Child < Parent; end Parent.with_feature.should == "yes" Child.with_feature.should == "yes" Child.with_feature = "no" Parent.with_feature.should == "yes" Child.with_feature.should == "no" Parent.with_feature = "maybe" Parent.with_feature.should == "maybe" Child.with_feature.should == "no" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
netzke-core-0.6.2 | spec/component/base_spec.rb |
netzke-core-0.6.1 | spec/component/base_spec.rb |
netzke-core-0.6.0 | spec/component/base_spec.rb |