Sha256: fb1738b02dd7c5973988f507585187ce875038efb9c24475f78339a23c5cc85c
Contents?: true
Size: 486 Bytes
Versions: 10
Compression:
Stored size: 486 Bytes
Contents
require 'spec_helper' describe "articles/show" do before(:each) do @article = assign(:article, stub_model(Article, :name => "Name", :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(/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