Sha256: 0426eb6b488f7c940eeac169b93b0513e138653c4f8bf9850b917c641ac76046

Contents?: true

Size: 324 Bytes

Versions: 2

Compression:

Stored size: 324 Bytes

Contents

require 'spec_helper'

describe "posts/show.html.erb" do
  before(:each) do
    @post = assign(:post, stub_model(Post,
      :title => "Title",
      :body => "MyText"
    ))
  end

  it "renders attributes in <p>" do
    render
    rendered.should contain("Title".to_s)
    rendered.should contain("MyText".to_s)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bobby-0.0.4 spec/views/posts/show.html.erb_spec.rb
bobby-0.0.3 spec/views/posts/show.html.erb_spec.rb