Sha256: 86383360330bd7f3138bea60494e4dfe79588b03c809e6fae45891bc3d7c93e2
Contents?: true
Size: 563 Bytes
Versions: 10
Compression:
Stored size: 563 Bytes
Contents
require 'spec_helper' describe "layouts/edit" do before(:each) do @layout = assign(:layout, stub_model(Layout, :name => "MyString", :content => "MyText" )) end it "renders the edit layout form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => layouts_path(@layout), :method => "post" do assert_select "input#layout_name", :name => "layout[name]" assert_select "textarea#layout_content", :name => "layout[content]" end end end
Version data entries
10 entries across 10 versions & 1 rubygems