Sha256: 2a20bd7cab5eb0565e57e5cbbdf714168fc51a66016d2a82e6eb0684ed37730a
Contents?: true
Size: 576 Bytes
Versions: 16
Compression:
Stored size: 576 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>' expect(clazz.lists('my_list')).to eq('<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 expect(sub_clazz.lists('my_list')).to eq('<list_code>') end end
Version data entries
16 entries across 16 versions & 1 rubygems