Sha256: 9e31e23950fec489a534feea94826aff9be47274ec5872f6b72f0e37c51ffa59

Contents?: true

Size: 658 Bytes

Versions: 3

Compression:

Stored size: 658 Bytes

Contents

require 'spec_helper'

describe "produces/edit" do
  fixtures :produce_types

  before(:each) do
    @produce = assign(:produce, stub_model(Produce,
      :manifestation_id => 1,
      :agent_id => 1
    ))
    @produce_types = ProduceType.all
  end

  it "renders the edit produce form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", :action => produces_path(@produce), :method => "post" do
      assert_select "input#produce_manifestation_id", :name => "produce[manifestation_id]"
      assert_select "input#produce_agent_id", :name => "produce[agent_id]"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enju_biblio-0.2.0.beta.3 spec/views/produces/edit.html.erb_spec.rb
enju_biblio-0.2.0.beta.2 spec/views/produces/edit.html.erb_spec.rb
enju_biblio-0.2.0.beta.1 spec/views/produces/edit.html.erb_spec.rb