Sha256: 0b669517534fe0e9321640e61f809d620f8908f623899110db8320a7696175cf

Contents?: true

Size: 385 Bytes

Versions: 4

Compression:

Stored size: 385 Bytes

Contents

require 'spec_helper'

describe "posts/show" do
  before(:each) do
    @post = assign(:post, stub_model(Post,
      :title => "Title",
      :body => "Body"
    ))
  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(/Title/)
    rendered.should match(/Body/)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ampere-1.2.3 example/spec/views/posts/show.html.erb_spec.rb
ampere-1.2.2 example/spec/views/posts/show.html.erb_spec.rb
ampere-1.2.1 example/spec/views/posts/show.html.erb_spec.rb
ampere-1.2.0 example/spec/views/posts/show.html.erb_spec.rb