wiki base sceleton
This commit is contained in:
parent
df27ec29f3
commit
eacea15a21
20 changed files with 432 additions and 0 deletions
24
spec/views/wikis/index.html.haml_spec.rb
Normal file
24
spec/views/wikis/index.html.haml_spec.rb
Normal file
|
@ -0,0 +1,24 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue