forked from bofh/fetsite
calendar feature generiert
This commit is contained in:
20
spec/views/calendars/edit.html.erb_spec.rb
Normal file
20
spec/views/calendars/edit.html.erb_spec.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe "calendars/edit" do
|
||||
before(:each) do
|
||||
@calendar = assign(:calendar, stub_model(Calendar,
|
||||
:name => "MyString",
|
||||
:public => false
|
||||
))
|
||||
end
|
||||
|
||||
it "renders the edit calendar form" do
|
||||
render
|
||||
|
||||
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
||||
assert_select "form[action=?][method=?]", calendar_path(@calendar), "post" do
|
||||
assert_select "input#calendar_name[name=?]", "calendar[name]"
|
||||
assert_select "input#calendar_public[name=?]", "calendar[public]"
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user