Sha256: c7df5e0f416ac1c8926c053e989b2cd328b5df94155c9fe6ea42a0ff01fe31b6
Contents?: true
Size: 669 Bytes
Versions: 1
Compression:
Stored size: 669 Bytes
Contents
require 'spec_helper' feature 'ImageLayers > Edit', js: true do include NamedFactories scenario 'editing an existing image layer' do image_layer_1a1 capybara_sign_in user_1 visit "/flms/pages/#{page_1.url}/blocks/#{block_1a.id}" # click on the 'edit' button. find('.btn.edit').click fill_in 'Name', with: 'new layer name' click_button 'Update Image layer' # Expect to be back at the block page. expect(current_path).to eql "/flms/pages/#{page_1.url}/blocks/#{block_1a.id}" # Check database updates. expect(Flms::Layer).to have(1).instances expect(image_layer_1a1.reload.name).to eql 'new layer name' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flms-0.0.3 | spec/features/layers/image_layers/edit_spec.rb |