gitlabhq/spec/views/wikis/index.html.haml_spec.rb
2012-02-19 19:50:13 +02:00

25 lines
634 B
Ruby

require 'spec_helper'
describe "wikis/index" do
before(:each) do
assign(:wikis, [
stub_model(Wiki,
:title => "Title",
:content => "MyText"
),
stub_model(Wiki,
:title => "Title",
:content => "MyText"
)
])
end
it "renders a list of wikis" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "tr>td", :text => "Title".to_s, :count => 2
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "tr>td", :text => "MyText".to_s, :count => 2
end
end