forked from bofh/fetsite
24 lines
550 B
Ruby
24 lines
550 B
Ruby
require 'spec_helper'
|
|
|
|
describe "calendars/index" do
|
|
before(:each) do
|
|
assign(:calendars, [
|
|
stub_model(Calendar,
|
|
:name => "Name",
|
|
:public => false
|
|
),
|
|
stub_model(Calendar,
|
|
:name => "Name",
|
|
:public => false
|
|
)
|
|
])
|
|
end
|
|
|
|
it "renders a list of calendars" do
|
|
render
|
|
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
|
assert_select "tr>td", :text => "Name".to_s, :count => 2
|
|
assert_select "tr>td", :text => false.to_s, :count => 2
|
|
end
|
|
end
|