Sha256: 80993ed878ac7d5a2038172d3d4286e0ba528b526182886eda86b2430db962d6

Contents?: true

Size: 365 Bytes

Versions: 2

Compression:

Stored size: 365 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/pages/#{page_1.url}/blocks"
    page.evaluate_script 'window.confirm = function() { return true; }'
    click_link 'delete'

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

Version data entries

2 entries across 2 versions & 1 rubygems

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