Sha256: 866136be83ade2747ab5e7d8ae20253a90a41d9e6ad33b19b72983a753214582

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

require 'spec_helper'

describe "private_posts/show" do
  before(:each) do
    @private_post = assign(:private_post, stub_model(PrivatePost,
      :title => "Title",
      :body => "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(/Title/)
    rendered.should match(/MyText/)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_token_authentication-1.2.0 spec/dummy/spec/views/private_posts/show.html.erb_spec.rb