require 'rails_helper'

describe "asset_events/_disposition_update_event_form.html.haml", :type => :view do
  before { skip('UpdateEvent assumes transam_asset. Not yet testable.') }
  it 'fields' do
    test_asset = create(:buslike_asset)
    assign(:asset, test_asset)
    assign(:asset_event, DispositionUpdateEvent.new(:asset => test_asset))
    render

    expect(rendered).to have_field('asset_event_event_date')
    expect(rendered).to have_field('asset_event_disposition_type_id')
    expect(rendered).to have_field('asset_event_sales_proceeds')
    expect(rendered).to have_field('asset_event_mileage_at_disposition')
    expect(rendered).to have_field('asset_event_comments')
  end
end
