Sha256: 9e8871bee04529a249bd7bfec7938fc7e82da2e9526deecd8afd2ccff9a979e0

Contents?: true

Size: 485 Bytes

Versions: 10

Compression:

Stored size: 485 Bytes

Contents

require 'spec_helper'

describe "layouts/show" do
  before(:each) do
    @layout = assign(:layout, stub_model(Layout,
      :name => "Name",
      :content => "MyText"
    ))
  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(/Name/)
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/MyText/)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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