Sha256: 1e58a26f95378e293986e776e22c5bbb1b841b94242a2751e15852a6d56f5197

Contents?: true

Size: 465 Bytes

Versions: 2

Compression:

Stored size: 465 Bytes

Contents

require 'spec_helper'

feature 'Blocks > Create' do
  include NamedFactories

  scenario 'creating a new block' do
    capybara_sign_in user_1
    visit "/flms/pages/#{page_1.url}/blocks"
    click_link 'New Block'
    fill_in 'Name', with: 'my new block'
    click_button 'Create Block'

    expect(Flms::Block).to have(1).instances
    expect(page_1.reload).to have(1).blocks
    block = page_1.blocks.first
    expect(block.name).to eql 'my new block'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flms-0.0.3 spec/features/blocks/create_spec.rb
flms-0.0.2 spec/features/blocks/create_spec.rb