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

Version Path
couch_potato-1.17.0 spec/unit/lists_spec.rb
couch_potato-1.16.0 spec/unit/lists_spec.rb
couch_potato-1.15.0 spec/unit/lists_spec.rb
couch_potato-1.14.0 spec/unit/lists_spec.rb
couch_potato-1.13.0 spec/unit/lists_spec.rb
couch_potato-1.12.1 spec/unit/lists_spec.rb
couch_potato-1.12.0 spec/unit/lists_spec.rb
couch_potato-1.11.0 spec/unit/lists_spec.rb
couch_potato-1.10.1 spec/unit/lists_spec.rb
couch_potato-1.10.0 spec/unit/lists_spec.rb
couch_potato-1.9.0 spec/unit/lists_spec.rb
couch_potato-1.7.1 spec/unit/lists_spec.rb
couch_potato-1.7.0 spec/unit/lists_spec.rb
couch_potato-1.6.5 spec/unit/lists_spec.rb
couch_potato-1.6.4 spec/unit/lists_spec.rb
couch_potato-1.6.3 spec/unit/lists_spec.rb