Sha256: 8cc9507fef2f1ca16e053dd5761ec8ffd7da6ece70b3147604e9e4c82e416f9a
Contents?: true
Size: 753 Bytes
Versions: 51
Compression:
Stored size: 753 Bytes
Contents
require 'spec_helper' describe "realizes/new" do fixtures :realize_types before(:each) do assign(:realize, stub_model(Realize, :expression_id => 1, :patron_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_patron_id", :name => "realize[patron_id]" end end end
Version data entries
51 entries across 51 versions & 1 rubygems