forked from bofh/fetsite
New Feature: Themen/Informationen
This commit is contained in:
15
spec/views/attachments/show.html.erb_spec.rb
Normal file
15
spec/views/attachments/show.html.erb_spec.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe "attachments/show" do
|
||||
before(:each) do
|
||||
@attachment = assign(:attachment, stub_model(Attachment,
|
||||
:name => "Name"
|
||||
))
|
||||
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/)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user