Files
fetsite/spec/views/fetzneditions/show.html.erb_spec.rb
Andreas Stephanides 4c48a4b769 fetzneditions
2013-08-19 15:42:08 +02:00

20 lines
481 B
Ruby

require 'spec_helper'
describe "fetzneditions/show" do
before(:each) do
@fetznedition = assign(:fetznedition, stub_model(Fetznedition,
:title => "Title",
:desc => "MyText",
:datei => "Datei"
))
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(/Datei/)
end
end