Sha256: 532810afb813e27d893a5f77b334e90fe8d15881abc9eecc26c723ae2558bbea

Contents?: true

Size: 584 Bytes

Versions: 12

Compression:

Stored size: 584 Bytes

Contents

require 'rails_helper'

RSpec.describe "manifestation_custom_properties/new", type: :view do
  before(:each) do
    assign(:manifestation_custom_property, ManifestationCustomProperty.new(
      name: "my_string",
      note: "MyText"
    ))
  end

  it "renders new manifestation_custom_property form" do
    render

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

      assert_select "input[name=?]", "manifestation_custom_property[name]"

      assert_select "textarea[name=?]", "manifestation_custom_property[note]"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
enju_biblio-0.3.18 spec/views/manifestation_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.17 spec/views/manifestation_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.16 spec/views/manifestation_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.15 spec/views/manifestation_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.14 spec/views/manifestation_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.13 spec/views/manifestation_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.12 spec/views/manifestation_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.11 spec/views/manifestation_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.10 spec/views/manifestation_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.10.rc.3 spec/views/manifestation_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.10.rc.2 spec/views/manifestation_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.10.rc.1 spec/views/manifestation_custom_properties/new.html.erb_spec.rb