Sha256: 928964756b5a0021a21bfef0559a18c17b3dd52ca3a92f743092de7c1c8a8b2f

Contents?: true

Size: 324 Bytes

Versions: 3

Compression:

Stored size: 324 Bytes

Contents

require 'spec_helper'

describe 'saving', type: :feature, sauce: true do
  it 'should return an error as an instance of Volt::Error' do
    visit '/save'

    fill_in 'post_title', with: 'ok'

    click_button 'Save'

    expect(page).to have_content('#<Volt::Errors {"title"=>["must be at least 5 characters"]}>')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
volt-0.9.6 spec/integration/save_spec.rb
volt-0.9.6.pre3 spec/integration/save_spec.rb
volt-0.9.6.pre2 spec/integration/save_spec.rb