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

Version Path
couch_potato-1.4.0 spec/unit/lists_spec.rb
couch_potato-1.3.0 spec/unit/lists_spec.rb
couch_potato-1.2.0 spec/unit/lists_spec.rb
couch_potato-1.1.4 spec/unit/lists_spec.rb
couch_potato-1.1.2 spec/unit/lists_spec.rb
couch_potato-1.1.1 spec/unit/lists_spec.rb
couch_potato-1.1.0 spec/unit/lists_spec.rb
couch_potato-1.0.1 spec/unit/lists_spec.rb
couch_potato-1.0.0 spec/unit/lists_spec.rb
couch_potato-0.7.1 spec/unit/lists_spec.rb
couch_potato-0.7.0 spec/unit/lists_spec.rb
couch_potato-0.7.0.pre.1 spec/unit/lists_spec.rb
couch_potato-0.6.0 spec/unit/lists_spec.rb
couch_potato-0.5.7 spec/unit/lists_spec.rb
couch_potato-rails2-0.5.10 spec/unit/lists_spec.rb
couch_potato-rails2-0.5.9 spec/unit/lists_spec.rb
couch_potato-rails2-0.5.8 spec/unit/lists_spec.rb
couch_potato-rails2-0.5.7 spec/unit/lists_spec.rb
couch_potato-rails2-0.5.6 spec/unit/lists_spec.rb
couch_potato-0.5.6 spec/unit/lists_spec.rb