Sha256: fb71597e79f971fd071e2a0158f9ef5705a59b2286f5a163f2bd98692a334fb7

Contents?: true

Size: 463 Bytes

Versions: 3

Compression:

Stored size: 463 Bytes

Contents

require 'spec_helper'

describe Formic::List do
  before(:each) do
    @model = Object.new
    stub(@page = Object.new).url_for(@model) {'/models/1'}
    stub(@page).render

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

  context "#initialize" do
    before(:each) do
      @input = Formic::List.new @page, @options, &@block
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

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