forked from bofh/fetsite
fetzneditions
This commit is contained in:
19
spec/views/fetzneditions/show.html.erb_spec.rb
Normal file
19
spec/views/fetzneditions/show.html.erb_spec.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
Reference in New Issue
Block a user