forked from bofh/fetsite
21 lines
571 B
Ruby
21 lines
571 B
Ruby
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
|