Sha256: 06badf0083623d27945e4e1be960da4b617c572cdf7f649eb0f0e2afeefb621a
Contents?: true
Size: 457 Bytes
Versions: 4
Compression:
Stored size: 457 Bytes
Contents
require 'spec_helper' feature 'Pages > Create' do include NamedFactories scenario 'allows to create a new page' do capybara_sign_in user_1 visit '/flms/pages/new' fill_in 'Title', with: 'my new title' fill_in 'Url', with: 'my new url' click_button 'Create Page' expect(Flms::Page).to have(1).instances page = Flms::Page.first expect(page.title).to eql 'my new title' expect(page.url).to eql 'my new url' end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
flms-0.9.0 | spec/features/pages/create_spec.rb |
flms-0.1.0 | spec/features/pages/create_spec.rb |
flms-0.0.3 | spec/features/pages/create_spec.rb |
flms-0.0.2 | spec/features/pages/create_spec.rb |