calendar feature generiert

This commit is contained in:
Andreas Stephanides
2013-08-06 00:48:45 +02:00
parent f8d5cb0ddd
commit 6bb35c110a
44 changed files with 1011 additions and 0 deletions

View 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