forked from bofh/fetsite
a lot of new models ...
Fotogallary, gremien, fetprofil,
This commit is contained in:
17
spec/views/galleries/show.html.erb_spec.rb
Normal file
17
spec/views/galleries/show.html.erb_spec.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe "galleries/show" do
|
||||
before(:each) do
|
||||
@gallery = assign(:gallery, stub_model(Gallery,
|
||||
:name => "Name",
|
||||
:desc => "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/)
|
||||
rendered.should match(/MyText/)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user