Sha256: 8d9f2b82f91bf5b2cb5a033277ae73e4ea3ad11941b76d776eba6db518f09c9c

Contents?: true

Size: 397 Bytes

Versions: 5

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

RSpec.shared_examples_for 'creates a new content block at the given path' do
  it 'creates a new content block at the given path', :aggregate_failures do
    expect { subject_method }.to change(MicroCms::ContentBlock, :count).by 1
    expect(content_block.content).to eq content
    expect(content_block.path).to eq MicroCms::ContentBlock.format_path path
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
micro_cms-0.2.1 spec/support/shared_examples/cms_block_helper_spec_helper.rb
micro_cms-0.2.0 spec/support/shared_examples/cms_block_helper_spec_helper.rb
micro_cms-0.1.2 spec/support/shared_examples/cms_block_helper_spec_helper.rb
micro_cms-0.1.1 spec/support/shared_examples/cms_block_helper_spec_helper.rb
micro_cms-0.1.0 spec/support/shared_examples/cms_block_helper_spec_helper.rb