forked from bofh/fetsite
New Feature: Themen/Informationen
This commit is contained in:
18
spec/views/attachments/edit.html.erb_spec.rb
Normal file
18
spec/views/attachments/edit.html.erb_spec.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe "attachments/edit" do
|
||||
before(:each) do
|
||||
@attachment = assign(:attachment, stub_model(Attachment,
|
||||
:name => "MyString"
|
||||
))
|
||||
end
|
||||
|
||||
it "renders the edit attachment form" do
|
||||
render
|
||||
|
||||
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
||||
assert_select "form[action=?][method=?]", attachment_path(@attachment), "post" do
|
||||
assert_select "input#attachment_name[name=?]", "attachment[name]"
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user