Sha256: dcb09ee927a70460a922518e95b1c593770c0b1fd46757656139fad6d3f90542

Contents?: true

Size: 310 Bytes

Versions: 12

Compression:

Stored size: 310 Bytes

Contents

require 'spec_helper'

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

  describe "snippet helper" do
    it "should return content" do
      snippet_for("foo").should eq "bar"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
static_blocks-1.2.1 spec/helpers/static_blocks_helper_spec.rb
static_blocks-1.2.0 spec/helpers/static_blocks_helper_spec.rb
static_blocks-1.1.5 spec/helpers/static_blocks_helper_spec.rb
static_blocks-1.1.4 spec/helpers/static_blocks_helper_spec.rb
static_blocks-1.1.3 spec/helpers/static_blocks_helper_spec.rb
static_blocks-1.1.2 spec/helpers/static_blocks_helper_spec.rb
static_blocks-1.1.1 spec/helpers/static_blocks_helper_spec.rb
static_blocks-1.1.0 spec/helpers/static_blocks_helper_spec.rb
static_blocks-1.0.3 spec/helpers/static_blocks_helper_spec.rb
static_blocks-1.0.2 spec/helpers/static_blocks_helper_spec.rb
static_blocks-1.0.1 spec/helpers/static_blocks_helper_spec.rb
static_blocks-1.0.0 spec/helpers/static_blocks_helper_spec.rb