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

19 lines
480 B
Ruby

require 'spec_helper'
describe "wikis/show" do
before(:each) do
@wiki = assign(:wiki, stub_model(Wiki,
:title => "Title",
:content => "MyText"
))
end
it "renders attributes in <p>" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
rendered.should match(/Title/)
# Run the generator again with the --webrat flag if you want to use webrat matchers
rendered.should match(/MyText/)
end
end