Sha256: 7aa82e2b340263f99551bca98d884fb99232941b807ca6d4464e9cf2d17e6d9d
Contents?: true
Size: 985 Bytes
Versions: 10
Compression:
Stored size: 985 Bytes
Contents
require 'spec_helper' describe "templates/edit" do before(:each) do @template = assign(:template, stub_model(Template, :body => "MyText", :path => "MyString", :format => "MyString", :locale => "MyString", :handler => "MyString", :partial => false )) end it "renders the edit template form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => templates_path(@template), :method => "post" do assert_select "textarea#template_body", :name => "template[body]" assert_select "input#template_path", :name => "template[path]" assert_select "input#template_format", :name => "template[format]" assert_select "input#template_locale", :name => "template[locale]" assert_select "input#template_handler", :name => "template[handler]" assert_select "input#template_partial", :name => "template[partial]" end end end
Version data entries
10 entries across 10 versions & 1 rubygems