forked from bofh/fetsite
a lot of new models ...
Fotogallary, gremien, fetprofil,
This commit is contained in:
26
spec/views/gremien/index.html.erb_spec.rb
Normal file
26
spec/views/gremien/index.html.erb_spec.rb
Normal file
@@ -0,0 +1,26 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe "gremien/index" do
|
||||
before(:each) do
|
||||
assign(:gremien, [
|
||||
stub_model(Gremium,
|
||||
:name => "Name",
|
||||
:desc => "MyText",
|
||||
:typ => "Typ"
|
||||
),
|
||||
stub_model(Gremium,
|
||||
:name => "Name",
|
||||
:desc => "MyText",
|
||||
:typ => "Typ"
|
||||
)
|
||||
])
|
||||
end
|
||||
|
||||
it "renders a list of gremien" 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 => "MyText".to_s, :count => 2
|
||||
assert_select "tr>td", :text => "Typ".to_s, :count => 2
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user