Sha256: 0821da2668c29e5e0b8efeeb8d7817d0ad084fad4efe35c40916d8657045ed7f

Contents?: true

Size: 328 Bytes

Versions: 7

Compression:

Stored size: 328 Bytes

Contents

require 'spec_helper'

describe StaticBlocks::StaticBlocksHelper do
  before do
    s = StaticBlocks::StaticBlock.create!({"title" => "foo", "content" => "bar", "status" => "published"})
  end

  describe "static_block helper" do
    it "should return content" do
      static_block_for("foo").should eq "bar"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
static_blocks-0.1.1 spec/helpers/static_blocks_helper_spec.rb
static_blocks-0.1.0 spec/helpers/static_blocks_helper_spec.rb
static_blocks-0.0.5 spec/helpers/static_blocks_helper_spec.rb
static_blocks-0.0.4 spec/helpers/static_blocks_helper_spec.rb
static_blocks-0.0.3 spec/helpers/static_blocks_helper_spec.rb
static_blocks-0.0.2 spec/helpers/static_blocks_helper_spec.rb
static_blocks-0.0.1 spec/helpers/static_blocks_helper_spec.rb