Sha256: 5fcbc8c693009dcb49ff75e2096e81a28e0495b4d136f6519db7e83c69f1b81a

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 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",
      :published => 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(/Title/)
    rendered.should match(/MyText/)
    rendered.should match(/false/)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_token_authentication-1.0.0.pre.5 test/dummy/spec/views/private_posts/show.html.erb_spec.rb
simple_token_authentication-1.0.0.beta.5 test/dummy/spec/views/private_posts/show.html.erb_spec.rb