Sha256: ec891685c6a21b7a3b3ebcc32e2e3b42aff4c709d1383aac6c227d0d87f32582
Contents?: true
Size: 575 Bytes
Versions: 32
Compression:
Stored size: 575 Bytes
Contents
require 'spec_helper' describe CouchPotato::View::Lists, '.list' do it "should make the list function available via .lists" do clazz = Class.new clazz.send :include, CouchPotato::View::Lists clazz.list 'my_list', '<list_code>' clazz.lists('my_list').should == '<list_code>' end it "should make the list available to subclasses" do clazz = Class.new clazz.send :include, CouchPotato::View::Lists clazz.list 'my_list', '<list_code>' sub_clazz = Class.new clazz sub_clazz.lists('my_list').should == '<list_code>' end end
Version data entries
32 entries across 32 versions & 3 rubygems