Sha256: 739e6b7809d696584597ca51721c9ffb50733cf6f552f46de81caa8a99b4d934
Contents?: true
Size: 552 Bytes
Versions: 10
Compression:
Stored size: 552 Bytes
Contents
require 'spec_helper' describe "articles/new" do before(:each) do assign(:article, stub_model(Article, :name => "MyString", :body => "MyText" ).as_new_record) end it "renders new article form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => articles_path, :method => "post" do assert_select "input#article_name", :name => "article[name]" assert_select "textarea#article_body", :name => "article[body]" end end end
Version data entries
10 entries across 10 versions & 1 rubygems