Sha256: 76f15da3a2db65ecc466bc5929c0c0d544d32ce0485c2c10b840d56a5f776eea

Contents?: true

Size: 750 Bytes

Versions: 33

Compression:

Stored size: 750 Bytes

Contents

require 'spec_helper'

describe "realizes/new" do
  fixtures :realize_types

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

  it "renders new 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, :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/new.html.erb_spec.rb
enju_biblio-0.1.2 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.1 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre71 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre70 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre69 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre68 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre67 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre66 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre65 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre64 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre63 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre62 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre61 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre60 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre59 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre58 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre57 spec/views/realizes/new.html.erb_spec.rb
enju_biblio-0.1.0.pre56 spec/views/realizes/new.html.erb_spec.rb