Sha256: dd07b69e53f9e7102dc913c54883104005b4269f735cd6b0c24ca52265ee43c5

Contents?: true

Size: 652 Bytes

Versions: 64

Compression:

Stored size: 652 Bytes

Contents

require 'spec_helper'

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

  it "renders the edit 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(@exemplify), :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.0.4 spec/views/exemplifies/edit.html.erb_spec.rb
enju_biblio-0.0.3 spec/views/exemplifies/edit.html.erb_spec.rb
enju_biblio-0.0.2 spec/views/exemplifies/edit.html.erb_spec.rb
enju_biblio-0.0.1 spec/views/exemplifies/edit.html.erb_spec.rb