a lot of new models ...

Fotogallary, gremien, fetprofil,
This commit is contained in:
Andreas Stephanides
2013-08-19 15:39:56 +02:00
parent a19d708134
commit 34b602e126
107 changed files with 2615 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
require 'spec_helper'
describe "galleries/index" do
before(:each) do
assign(:galleries, [
stub_model(Gallery,
:name => "Name",
:desc => "MyText"
),
stub_model(Gallery,
:name => "Name",
:desc => "MyText"
)
])
end
it "renders a list of galleries" 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
end
end