Sha256: 653458feec2e62db4d325271aff1fce848fce5198b554815649ed46e4f14596d

Contents?: true

Size: 584 Bytes

Versions: 3

Compression:

Stored size: 584 Bytes

Contents

require 'spec_helper'

describe Formic::TabPanel 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 "#tab_panel" do
    before(:each) do
      @tab_panel = Formic::TabPanel.new @page, @options, &@block
    end

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

    it "should have class tab_panel" do
      @tab_panel.should have_class 'tab_panel'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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