Sha256: 6699b3249bccfe07fb4e9258825f82c394f19e7d2287fb0852d3148f1270ebbb

Contents?: true

Size: 481 Bytes

Versions: 7

Compression:

Stored size: 481 Bytes

Contents

require 'spec_helper'

describe RenderHelper do
  describe "#form_block" do
    context "no title" do
      it "renders the form_block partial" do
        helper.form_block { "hello" }.should match /hello/
      end
    end

    context "with title" do
      it "renders the form_block partial" do
        formblock = helper.form_block("some title") { "blah blah" }
        formblock.should match /blah blah/
        formblock.should match /some title/
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
outpost-cms-0.1.4 spec/helpers/render_helper_spec.rb
outpost-cms-0.1.3 spec/helpers/render_helper_spec.rb
outpost-cms-0.1.2 spec/helpers/render_helper_spec.rb
outpost-cms-0.1.1 spec/helpers/render_helper_spec.rb
outpost-cms-0.1.0 spec/helpers/render_helper_spec.rb
outpost-cms-0.0.5 spec/helpers/render_helper_spec.rb
outpost-cms-0.0.4 spec/helpers/render_helper_spec.rb