Sha256: 72d84a73ca1ee2f8c332afd77548b7618a5913166d0838ebfa59dcead66ef9e5

Contents?: true

Size: 412 Bytes

Versions: 4

Compression:

Stored size: 412 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/#{page_1.url}/edit"
    fill_in 'Title', with: 'my new title'
    fill_in 'Url', with: 'my new url'
    click_button 'Update Page'
    expect(page_1.reload.title).to eql 'my new title'
    expect(page_1.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/update_spec.rb
flms-0.1.0 spec/features/pages/update_spec.rb
flms-0.0.3 spec/features/pages/update_spec.rb
flms-0.0.2 spec/features/pages/update_spec.rb