Sha256: ad3256900f169856254c4eb4d6b6c86c9196b1bf83e38f6b938f0b9bac6fc432
Contents?: true
Size: 573 Bytes
Versions: 1
Compression:
Stored size: 573 Bytes
Contents
describe "Proxy" do #describe "caching ivars in class variable" do # # it "should only add unique values to @@vars array" do # Song.class_eval { include(Turnkey::Proxy) } # @song1 = Song.new.tap { |s| s.title = "In Bloom"; s.album = "Nevermind" } # NSKeyedArchiver.archivedDataWithRootObject(@song1) # @song2 = Song.new.tap { |s| s.title = "Lounge Act"; s.album = "Nevermind"; s.artist = "Nirvana"} # NSKeyedArchiver.archivedDataWithRootObject(@song2) # p Song.tk_vars.inspect # Song.tk_vars.length.should == 3 # end #end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
turnkey-0.2.2 | spec/proxy_spec.rb |