require 'spec_helper' describe "templates/show" do before(:each) do @template = assign(:template, stub_model(Template, :body => "MyText", :path => "Path", :format => "Format", :locale => "Locale", :handler => "Handler", :partial => false )) end it "renders attributes in
" do render # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/MyText/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/Path/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/Format/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/Locale/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/Handler/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/false/) end end