Sha256: 2ec1ef4aa5161950cc136121e7e97918c36c0105a3daf84b338cbbd5cfd6f900

Contents?: true

Size: 787 Bytes

Versions: 43

Compression:

Stored size: 787 Bytes

Contents

require 'spec_helper'

describe "series_has_manifestations/new" do
  before(:each) do
    assign(:series_has_manifestation, stub_model(SeriesHasManifestation,
      :series_statement_id => 1,
      :manifestation_id => 1,
      :position => 1
    ).as_new_record)
  end

  it "renders new series_has_manifestation form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", :action => series_has_manifestations_path, :method => "post" do
      assert_select "input#series_has_manifestation_series_statement_id", :name => "series_has_manifestation[series_statement_id]"
      assert_select "input#series_has_manifestation_manifestation_id", :name => "series_has_manifestation[manifestation_id]"
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre34 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre33 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre32 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre31 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre30 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre29 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre28 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre27 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre26 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre25 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre24 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre23 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre22 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre21 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre20 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre19 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre18 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre17 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre16 spec/views/series_has_manifestations/new.html.erb_spec.rb
enju_biblio-0.1.0.pre15 spec/views/series_has_manifestations/new.html.erb_spec.rb