Sha256: 8a5bf1f13bae77f1447344548ebd050165939a41b71dbfd3600e13382653bef3

Contents?: true

Size: 537 Bytes

Versions: 9

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

require "rails_helper"

module Archangel
  RSpec.describe "Field classification custom input for simple_form",
                 type: :input do
    before { concat input_for(:foo, :select_field, as: :field_classification) }

    it "applies class to field" do
      assert_select "select.field_classification", count: 1
    end

    it "has options" do
      assert_select "option", count: Archangel::Field::CLASSIFICATIONS.count
      assert_select "select[multiple=multiple]", count: 0
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
archangel-0.4.0 spec/unit/inputs/archangel/field_classification_input_spec.rb
archangel-0.3.0 spec/inputs/archangel/field_classification_input_spec.rb
archangel-0.0.8 spec/inputs/archangel/field_classification_input_spec.rb
archangel-0.0.7 spec/inputs/archangel/field_classification_input_spec.rb
archangel-0.0.6 spec/inputs/archangel/field_classification_input_spec.rb
archangel-0.0.5 spec/inputs/archangel/field_classification_input_spec.rb
archangel-0.0.4 spec/inputs/archangel/field_classification_input_spec.rb
archangel-0.0.3 spec/inputs/archangel/field_classification_input_spec.rb
archangel-0.0.2 spec/inputs/archangel/field_classification_input_spec.rb