Sha256: e75fe4594a9e33d4a4384a150a5ca35ca86283d47c86a3419af1acc693170296

Contents?: true

Size: 744 Bytes

Versions: 27

Compression:

Stored size: 744 Bytes

Contents

require 'rails_helper'

describe "produce_types/edit" do
  before(:each) do
    @produce_type = assign(:produce_type, stub_model(ProduceType,
      name: "MyString",
      display_name: "MyText",
      note: "MyText",
      position: 1
    ))
  end

  it "renders the edit produce_type form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", action: produce_types_path(@produce_type), method: "post" do
      assert_select "input#produce_type_name", name: "produce_type[name]"
      assert_select "textarea#produce_type_display_name", name: "produce_type[display_name]"
      assert_select "textarea#produce_type_note", name: "produce_type[note]"
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
enju_biblio-0.3.18 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.17 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.16 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.15 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.14 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.13 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.12 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.11 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.10 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.10.rc.3 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.10.rc.2 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.10.rc.1 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.9 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.4.0.rc.1 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.8 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.7 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.6 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.4.0.beta.2 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.4.0.beta.1 spec/views/produce_types/edit.html.erb_spec.rb
enju_biblio-0.3.5 spec/views/produce_types/edit.html.erb_spec.rb