Sha256: e179817887c7c2ec1cab1930e60c2030e22470f67e485e3f0aa8563196960e0c

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

require 'spec_helper'

feature 'Pages > Create' do
  test_helpers

  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

1 entries across 1 versions & 1 rubygems

Version Path
flms-0.0.1 spec/features/pages/update_spec.rb