require 'rails_helper'

RSpec.describe "settings/order_queue_stations/new", type: :view do
  before(:each) do
    assign(:settings_order_queue_station, Settings::OrderQueueStation.new(
      :station_name => "MyString",
      :is_active => false,
      :processing_items => "",
      :print_copy => false,
      :printer_name => "MyString",
      :font_size => 1,
      :cut_per_item => false,
      :use_alternate_name => false,
      :created_by => "MyString"
    ))
  end

  it "renders new settings_order_queue_station form" do
    render

    assert_select "form[action=?][method=?]", settings_order_queue_stations_path, "post" do

      assert_select "input[name=?]", "settings_order_queue_station[station_name]"

      assert_select "input[name=?]", "settings_order_queue_station[is_active]"

      assert_select "input[name=?]", "settings_order_queue_station[processing_items]"

      assert_select "input[name=?]", "settings_order_queue_station[print_copy]"

      assert_select "input[name=?]", "settings_order_queue_station[printer_name]"

      assert_select "input[name=?]", "settings_order_queue_station[font_size]"

      assert_select "input[name=?]", "settings_order_queue_station[cut_per_item]"

      assert_select "input[name=?]", "settings_order_queue_station[use_alternate_name]"

      assert_select "input[name=?]", "settings_order_queue_station[created_by]"
    end
  end
end
