Sha256: 1405f4a5cefb99c49d87986f951bd38828e82b2d3f34441afd08298ac8bbac51
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
require 'spec_helper' feature 'Blocks > Create' do test_helpers 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flms-0.0.1 | spec/features/blocks/create_spec.rb |