Sha256: 19f7f41326777ea1c39e54891e699c6be8fbcca68e2e7ea5a4646243b4bcf1d5

Contents?: true

Size: 521 Bytes

Versions: 12

Compression:

Stored size: 521 Bytes

Contents

require 'rails_helper'

RSpec.describe "item_custom_properties/new", type: :view do
  before(:each) do
    assign(:item_custom_property, ItemCustomProperty.new(
      name: "my_string",
      note: "MyText"
    ))
  end

  it "renders new item_custom_property form" do
    render

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

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

      assert_select "textarea[name=?]", "item_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/item_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.17 spec/views/item_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.16 spec/views/item_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.15 spec/views/item_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.14 spec/views/item_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.13 spec/views/item_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.12 spec/views/item_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.11 spec/views/item_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.10 spec/views/item_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.10.rc.3 spec/views/item_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.10.rc.2 spec/views/item_custom_properties/new.html.erb_spec.rb
enju_biblio-0.3.10.rc.1 spec/views/item_custom_properties/new.html.erb_spec.rb