Sha256: 705694f1f630996b9ee0e724d5c69b920d0889b05f160cf86f2ca66277ab8b38

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

require 'spec_helper'

feature 'Blocks > Edit' do
  include NamedFactories

  scenario 'editing an existing block' do
    block_1a

    capybara_sign_in user_1
    visit "/flms/pages/#{page_1.url}/blocks"
    click_link 'edit'
    fill_in 'Name', with: 'new block name'
    click_button 'Update Block'

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

Version data entries

2 entries across 2 versions & 1 rubygems

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