Sha256: 531e529328872e713f1d71b3de848c01691dd3b008e9cf7cb8e02867072b7608
Contents?: true
Size: 772 Bytes
Versions: 13
Compression:
Stored size: 772 Bytes
Contents
require 'spec_helper' module Writefully describe Content do let(:index) { {site: 'codemy-net', resource: 'posts', slug: '1-hash-selector-pattern' } } let(:meta) { { "title" => "Ruby Hash Selector Pattern", "tags" => ["Ruby"], "playlists" => ["A Shot of Ruby"], "details" => { "blurb" => "We show you an alternative to if / else and case / switch.", "cover" => "assets/hash-selector-icon.png" }, "position" => 1 } } subject(:content) { Writefully::Content.new(index) } its(:body) { should include "# Hash Selector Pattern" } its(:meta) { should eq meta } its(:slug) { should eq 'hash-selector-pattern' } its(:position) { should eq 1 } end end
Version data entries
13 entries across 13 versions & 1 rubygems