Sha256: aae05683353f27928df187199537be33f3cadb284f3dac2e0b5b70dad0719995
Contents?: true
Size: 648 Bytes
Versions: 51
Compression:
Stored size: 648 Bytes
Contents
require 'spec_helper' describe "creates/new" do fixtures :create_types before(:each) do assign(:create, stub_model(Create, :work_id => 1, :patron_id => 1 ).as_new_record) @create_types = CreateType.all @ability = Object.new @ability.extend(CanCan::Ability) controller.stub(:current_ability) { @ability } end it "renders new create form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => creates_path, :method => "post" do assert_select "input#create_work_id", :name => "create[work_id]" end end end
Version data entries
51 entries across 51 versions & 1 rubygems