Sha256: 39abba6a2a7777a9722554c17c47d4a5d72470de27b9178f676b63ede64896c0

Contents?: true

Size: 763 Bytes

Versions: 33

Compression:

Stored size: 763 Bytes

Contents

require 'spec_helper'

describe "realizes/edit" do
  fixtures :realize_types

  before(:each) do
    @realize = assign(:realize, stub_model(Realize,
      :expression_id => 1,
      :agent_id => 1
    ))
    @realize_types = RealizeType.all
    @ability = Object.new
    @ability.extend(CanCan::Ability)
    controller.stub(:current_ability) { @ability }
  end

  it "renders the edit realize form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", :action => realizes_path(@realize), :method => "post" do
      assert_select "input#realize_expression_id", :name => "realize[expression_id]"
      assert_select "input#realize_agent_id", :name => "realize[agent_id]"
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
enju_biblio-0.1.3 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.2 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.1 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre71 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre70 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre69 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre68 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre67 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre66 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre65 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre64 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre63 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre62 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre61 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre60 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre59 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre58 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre57 spec/views/realizes/edit.html.erb_spec.rb
enju_biblio-0.1.0.pre56 spec/views/realizes/edit.html.erb_spec.rb