Sha256: 6b52decb4aa128c08f7b38e90a9f3e80b85a3898b8357476534f7cf0d23cdba6

Contents?: true

Size: 368 Bytes

Versions: 2

Compression:

Stored size: 368 Bytes

Contents

require 'spec_helper'

feature 'Blocks > Delete' do
  include NamedFactories

  scenario 'deleting a new block', js: true do
    block_1a

    capybara_sign_in user_1
    visit "/flms/blocks"
    page.evaluate_script 'window.confirm = function() { return true; }'
    click_link "delete-block-#{ block_1a.id }"

    expect(Flms::Block).to have(0).instances
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flms-0.9.0 spec/features/blocks/delete_spec.rb
flms-0.1.0 spec/features/blocks/delete_spec.rb