Sha256: d23b552f7d901d32121f41330326b08b8999d9a3cd1ee74b0fe5932539dbba68

Contents?: true

Size: 635 Bytes

Versions: 64

Compression:

Stored size: 635 Bytes

Contents

require 'spec_helper'

describe "exemplifies/new" do
  before(:each) do
    assign(:exemplify, stub_model(Exemplify,
      :manifestation_id => 1,
      :item_id => 1
    ).as_new_record)
    @ability = Object.new
    @ability.extend(CanCan::Ability)
    controller.stub(:current_ability) { @ability }
  end

  it "renders new exemplify form" do
    render

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

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre55 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre54 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre53 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre52 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre51 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre50 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre49 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre48 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre47 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre46 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre45 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre44 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre43 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre42 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre41 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre40 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre39 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre38 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre37 spec/views/exemplifies/new.html.erb_spec.rb
enju_biblio-0.1.0.pre36 spec/views/exemplifies/new.html.erb_spec.rb