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