Sha256: f7fe8fefe2fd71dc9876a0d9b21aff08f6d3d0a0e2420ec07aad15865d75b060

Contents?: true

Size: 1.07 KB

Versions: 10

Compression:

Stored size: 1.07 KB

Contents

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 <p>" 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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kuztuscms-0.0.10 spec/views/kuztuscms/templates/show.html.erb_spec.rb
kuztuscms-0.0.9 spec/views/kuztuscms/templates/show.html.erb_spec.rb
kuztuscms-0.0.8 spec/views/kuztuscms/templates/show.html.erb_spec.rb
kuztuscms-0.0.7 spec/views/kuztuscms/templates/show.html.erb_spec.rb
kuztuscms-0.0.6 spec/views/kuztuscms/templates/show.html.erb_spec.rb
kuztuscms-0.0.5 spec/views/kuztuscms/templates/show.html.erb_spec.rb
kuztuscms-0.0.4 spec/views/kuztuscms/templates/show.html.erb_spec.rb
kuztuscms-0.0.3 spec/views/kuztuscms/templates/show.html.erb_spec.rb
kuztuscms-0.0.2 spec/views/kuztuscms/templates/show.html.erb_spec.rb
kuztuscms-0.0.1 spec/views/kuztuscms/templates/show.html.erb_spec.rb