Sha256: 10e11bdf74991e96a3da053bd3b86bfb7264457d10a8486691d17aa2dbcd3f03

Contents?: true

Size: 556 Bytes

Versions: 3

Compression:

Stored size: 556 Bytes

Contents

require 'spec_helper'

describe Formic::ListItem do
  before(:each) do
    @model = Object.new
    stub(@page).render

    @options = {}
    @block = Proc.new {}
  end

  context "#initialize" do
    before(:each) do
      @list_item = Formic::ListItem.new @page, 'List Item Content', @options, &@block
    end

    it "should have template formic/default/list_item" do
      @list_item.template.should == 'formic/default/list_item'
    end

    it "it should initialize with items" do
      @list_item.text.should == 'List Item Content'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
formic-0.2.5 spec/formic/list_item_spec.rb
formic-0.2.1 spec/formic/list_item_spec.rb
formic-0.1.0 spec/formic/list_item_spec.rb