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,22 @@
require 'spec_helper'
describe "gremien/edit" do
before(:each) do
@gremium = assign(:gremium, stub_model(Gremium,
:name => "MyString",
:desc => "MyText",
:typ => "MyString"
))
end
it "renders the edit gremium form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", gremium_path(@gremium), "post" do
assert_select "input#gremium_name[name=?]", "gremium[name]"
assert_select "textarea#gremium_desc[name=?]", "gremium[desc]"
assert_select "input#gremium_typ[name=?]", "gremium[typ]"
end
end
end