Sha256: a578b7562b591aa5f5d49ad54167dd72d0689c9dd7c3fa6d174ea499ae4711aa
Contents?: true
Size: 533 Bytes
Versions: 3
Compression:
Stored size: 533 Bytes
Contents
require 'spec_helper' describe "creates/new" do fixtures :create_types before(:each) do assign(:create, stub_model(Create, :work_id => 1, :agent_id => 1 ).as_new_record) @create_types = CreateType.all 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
3 entries across 3 versions & 1 rubygems