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,160 @@
require 'spec_helper'
# This spec was generated by rspec-rails when you ran the scaffold generator.
# It demonstrates how one might use RSpec to specify the controller code that
# was generated by Rails when you ran the scaffold generator.
#
# It assumes that the implementation code is generated by the rails scaffold
# generator. If you are using any extension libraries to generate different
# controller code, this generated spec may or may not pass.
#
# It only uses APIs available in rails and/or rspec-rails. There are a number
# of tools you can use to make these specs even more expressive, but we're
# sticking to rails and rspec-rails APIs to keep things simple and stable.
#
# Compared to earlier versions of this generator, there is very limited use of
# stubs and message expectations in this spec. Stubs are only used when there
# is no simpler way to get a handle on the object needed for the example.
# Message expectations are only used when there is no simpler way to specify
# that an instance is receiving a specific message.
describe FetprofilesController do
# This should return the minimal set of attributes required to create a valid
# Fetprofile. As you add validations to Fetprofile, be sure to
# adjust the attributes here as well.
let(:valid_attributes) { { "vorname" => "MyString" } }
# This should return the minimal set of values that should be in the session
# in order to pass any filters (e.g. authentication) defined in
# FetprofilesController. Be sure to keep this updated too.
let(:valid_session) { {} }
describe "GET index" do
it "assigns all fetprofiles as @fetprofiles" do
fetprofile = Fetprofile.create! valid_attributes
get :index, {}, valid_session
assigns(:fetprofiles).should eq([fetprofile])
end
end
describe "GET show" do
it "assigns the requested fetprofile as @fetprofile" do
fetprofile = Fetprofile.create! valid_attributes
get :show, {:id => fetprofile.to_param}, valid_session
assigns(:fetprofile).should eq(fetprofile)
end
end
describe "GET new" do
it "assigns a new fetprofile as @fetprofile" do
get :new, {}, valid_session
assigns(:fetprofile).should be_a_new(Fetprofile)
end
end
describe "GET edit" do
it "assigns the requested fetprofile as @fetprofile" do
fetprofile = Fetprofile.create! valid_attributes
get :edit, {:id => fetprofile.to_param}, valid_session
assigns(:fetprofile).should eq(fetprofile)
end
end
describe "POST create" do
describe "with valid params" do
it "creates a new Fetprofile" do
expect {
post :create, {:fetprofile => valid_attributes}, valid_session
}.to change(Fetprofile, :count).by(1)
end
it "assigns a newly created fetprofile as @fetprofile" do
post :create, {:fetprofile => valid_attributes}, valid_session
assigns(:fetprofile).should be_a(Fetprofile)
assigns(:fetprofile).should be_persisted
end
it "redirects to the created fetprofile" do
post :create, {:fetprofile => valid_attributes}, valid_session
response.should redirect_to(Fetprofile.last)
end
end
describe "with invalid params" do
it "assigns a newly created but unsaved fetprofile as @fetprofile" do
# Trigger the behavior that occurs when invalid params are submitted
Fetprofile.any_instance.stub(:save).and_return(false)
post :create, {:fetprofile => { "vorname" => "invalid value" }}, valid_session
assigns(:fetprofile).should be_a_new(Fetprofile)
end
it "re-renders the 'new' template" do
# Trigger the behavior that occurs when invalid params are submitted
Fetprofile.any_instance.stub(:save).and_return(false)
post :create, {:fetprofile => { "vorname" => "invalid value" }}, valid_session
response.should render_template("new")
end
end
end
describe "PUT update" do
describe "with valid params" do
it "updates the requested fetprofile" do
fetprofile = Fetprofile.create! valid_attributes
# Assuming there are no other fetprofiles in the database, this
# specifies that the Fetprofile created on the previous line
# receives the :update_attributes message with whatever params are
# submitted in the request.
Fetprofile.any_instance.should_receive(:update_attributes).with({ "vorname" => "MyString" })
put :update, {:id => fetprofile.to_param, :fetprofile => { "vorname" => "MyString" }}, valid_session
end
it "assigns the requested fetprofile as @fetprofile" do
fetprofile = Fetprofile.create! valid_attributes
put :update, {:id => fetprofile.to_param, :fetprofile => valid_attributes}, valid_session
assigns(:fetprofile).should eq(fetprofile)
end
it "redirects to the fetprofile" do
fetprofile = Fetprofile.create! valid_attributes
put :update, {:id => fetprofile.to_param, :fetprofile => valid_attributes}, valid_session
response.should redirect_to(fetprofile)
end
end
describe "with invalid params" do
it "assigns the fetprofile as @fetprofile" do
fetprofile = Fetprofile.create! valid_attributes
# Trigger the behavior that occurs when invalid params are submitted
Fetprofile.any_instance.stub(:save).and_return(false)
put :update, {:id => fetprofile.to_param, :fetprofile => { "vorname" => "invalid value" }}, valid_session
assigns(:fetprofile).should eq(fetprofile)
end
it "re-renders the 'edit' template" do
fetprofile = Fetprofile.create! valid_attributes
# Trigger the behavior that occurs when invalid params are submitted
Fetprofile.any_instance.stub(:save).and_return(false)
put :update, {:id => fetprofile.to_param, :fetprofile => { "vorname" => "invalid value" }}, valid_session
response.should render_template("edit")
end
end
end
describe "DELETE destroy" do
it "destroys the requested fetprofile" do
fetprofile = Fetprofile.create! valid_attributes
expect {
delete :destroy, {:id => fetprofile.to_param}, valid_session
}.to change(Fetprofile, :count).by(-1)
end
it "redirects to the fetprofiles list" do
fetprofile = Fetprofile.create! valid_attributes
delete :destroy, {:id => fetprofile.to_param}, valid_session
response.should redirect_to(fetprofiles_url)
end
end
end

View File

@@ -0,0 +1,160 @@
require 'spec_helper'
# This spec was generated by rspec-rails when you ran the scaffold generator.
# It demonstrates how one might use RSpec to specify the controller code that
# was generated by Rails when you ran the scaffold generator.
#
# It assumes that the implementation code is generated by the rails scaffold
# generator. If you are using any extension libraries to generate different
# controller code, this generated spec may or may not pass.
#
# It only uses APIs available in rails and/or rspec-rails. There are a number
# of tools you can use to make these specs even more expressive, but we're
# sticking to rails and rspec-rails APIs to keep things simple and stable.
#
# Compared to earlier versions of this generator, there is very limited use of
# stubs and message expectations in this spec. Stubs are only used when there
# is no simpler way to get a handle on the object needed for the example.
# Message expectations are only used when there is no simpler way to specify
# that an instance is receiving a specific message.
describe FotosController do
# This should return the minimal set of attributes required to create a valid
# Foto. As you add validations to Foto, be sure to
# adjust the attributes here as well.
let(:valid_attributes) { { "title" => "MyString" } }
# This should return the minimal set of values that should be in the session
# in order to pass any filters (e.g. authentication) defined in
# FotosController. Be sure to keep this updated too.
let(:valid_session) { {} }
describe "GET index" do
it "assigns all fotos as @fotos" do
foto = Foto.create! valid_attributes
get :index, {}, valid_session
assigns(:fotos).should eq([foto])
end
end
describe "GET show" do
it "assigns the requested foto as @foto" do
foto = Foto.create! valid_attributes
get :show, {:id => foto.to_param}, valid_session
assigns(:foto).should eq(foto)
end
end
describe "GET new" do
it "assigns a new foto as @foto" do
get :new, {}, valid_session
assigns(:foto).should be_a_new(Foto)
end
end
describe "GET edit" do
it "assigns the requested foto as @foto" do
foto = Foto.create! valid_attributes
get :edit, {:id => foto.to_param}, valid_session
assigns(:foto).should eq(foto)
end
end
describe "POST create" do
describe "with valid params" do
it "creates a new Foto" do
expect {
post :create, {:foto => valid_attributes}, valid_session
}.to change(Foto, :count).by(1)
end
it "assigns a newly created foto as @foto" do
post :create, {:foto => valid_attributes}, valid_session
assigns(:foto).should be_a(Foto)
assigns(:foto).should be_persisted
end
it "redirects to the created foto" do
post :create, {:foto => valid_attributes}, valid_session
response.should redirect_to(Foto.last)
end
end
describe "with invalid params" do
it "assigns a newly created but unsaved foto as @foto" do
# Trigger the behavior that occurs when invalid params are submitted
Foto.any_instance.stub(:save).and_return(false)
post :create, {:foto => { "title" => "invalid value" }}, valid_session
assigns(:foto).should be_a_new(Foto)
end
it "re-renders the 'new' template" do
# Trigger the behavior that occurs when invalid params are submitted
Foto.any_instance.stub(:save).and_return(false)
post :create, {:foto => { "title" => "invalid value" }}, valid_session
response.should render_template("new")
end
end
end
describe "PUT update" do
describe "with valid params" do
it "updates the requested foto" do
foto = Foto.create! valid_attributes
# Assuming there are no other fotos in the database, this
# specifies that the Foto created on the previous line
# receives the :update_attributes message with whatever params are
# submitted in the request.
Foto.any_instance.should_receive(:update_attributes).with({ "title" => "MyString" })
put :update, {:id => foto.to_param, :foto => { "title" => "MyString" }}, valid_session
end
it "assigns the requested foto as @foto" do
foto = Foto.create! valid_attributes
put :update, {:id => foto.to_param, :foto => valid_attributes}, valid_session
assigns(:foto).should eq(foto)
end
it "redirects to the foto" do
foto = Foto.create! valid_attributes
put :update, {:id => foto.to_param, :foto => valid_attributes}, valid_session
response.should redirect_to(foto)
end
end
describe "with invalid params" do
it "assigns the foto as @foto" do
foto = Foto.create! valid_attributes
# Trigger the behavior that occurs when invalid params are submitted
Foto.any_instance.stub(:save).and_return(false)
put :update, {:id => foto.to_param, :foto => { "title" => "invalid value" }}, valid_session
assigns(:foto).should eq(foto)
end
it "re-renders the 'edit' template" do
foto = Foto.create! valid_attributes
# Trigger the behavior that occurs when invalid params are submitted
Foto.any_instance.stub(:save).and_return(false)
put :update, {:id => foto.to_param, :foto => { "title" => "invalid value" }}, valid_session
response.should render_template("edit")
end
end
end
describe "DELETE destroy" do
it "destroys the requested foto" do
foto = Foto.create! valid_attributes
expect {
delete :destroy, {:id => foto.to_param}, valid_session
}.to change(Foto, :count).by(-1)
end
it "redirects to the fotos list" do
foto = Foto.create! valid_attributes
delete :destroy, {:id => foto.to_param}, valid_session
response.should redirect_to(fotos_url)
end
end
end

View File

@@ -0,0 +1,160 @@
require 'spec_helper'
# This spec was generated by rspec-rails when you ran the scaffold generator.
# It demonstrates how one might use RSpec to specify the controller code that
# was generated by Rails when you ran the scaffold generator.
#
# It assumes that the implementation code is generated by the rails scaffold
# generator. If you are using any extension libraries to generate different
# controller code, this generated spec may or may not pass.
#
# It only uses APIs available in rails and/or rspec-rails. There are a number
# of tools you can use to make these specs even more expressive, but we're
# sticking to rails and rspec-rails APIs to keep things simple and stable.
#
# Compared to earlier versions of this generator, there is very limited use of
# stubs and message expectations in this spec. Stubs are only used when there
# is no simpler way to get a handle on the object needed for the example.
# Message expectations are only used when there is no simpler way to specify
# that an instance is receiving a specific message.
describe GalleriesController do
# This should return the minimal set of attributes required to create a valid
# Gallery. As you add validations to Gallery, be sure to
# adjust the attributes here as well.
let(:valid_attributes) { { "name" => "MyString" } }
# This should return the minimal set of values that should be in the session
# in order to pass any filters (e.g. authentication) defined in
# GalleriesController. Be sure to keep this updated too.
let(:valid_session) { {} }
describe "GET index" do
it "assigns all galleries as @galleries" do
gallery = Gallery.create! valid_attributes
get :index, {}, valid_session
assigns(:galleries).should eq([gallery])
end
end
describe "GET show" do
it "assigns the requested gallery as @gallery" do
gallery = Gallery.create! valid_attributes
get :show, {:id => gallery.to_param}, valid_session
assigns(:gallery).should eq(gallery)
end
end
describe "GET new" do
it "assigns a new gallery as @gallery" do
get :new, {}, valid_session
assigns(:gallery).should be_a_new(Gallery)
end
end
describe "GET edit" do
it "assigns the requested gallery as @gallery" do
gallery = Gallery.create! valid_attributes
get :edit, {:id => gallery.to_param}, valid_session
assigns(:gallery).should eq(gallery)
end
end
describe "POST create" do
describe "with valid params" do
it "creates a new Gallery" do
expect {
post :create, {:gallery => valid_attributes}, valid_session
}.to change(Gallery, :count).by(1)
end
it "assigns a newly created gallery as @gallery" do
post :create, {:gallery => valid_attributes}, valid_session
assigns(:gallery).should be_a(Gallery)
assigns(:gallery).should be_persisted
end
it "redirects to the created gallery" do
post :create, {:gallery => valid_attributes}, valid_session
response.should redirect_to(Gallery.last)
end
end
describe "with invalid params" do
it "assigns a newly created but unsaved gallery as @gallery" do
# Trigger the behavior that occurs when invalid params are submitted
Gallery.any_instance.stub(:save).and_return(false)
post :create, {:gallery => { "name" => "invalid value" }}, valid_session
assigns(:gallery).should be_a_new(Gallery)
end
it "re-renders the 'new' template" do
# Trigger the behavior that occurs when invalid params are submitted
Gallery.any_instance.stub(:save).and_return(false)
post :create, {:gallery => { "name" => "invalid value" }}, valid_session
response.should render_template("new")
end
end
end
describe "PUT update" do
describe "with valid params" do
it "updates the requested gallery" do
gallery = Gallery.create! valid_attributes
# Assuming there are no other galleries in the database, this
# specifies that the Gallery created on the previous line
# receives the :update_attributes message with whatever params are
# submitted in the request.
Gallery.any_instance.should_receive(:update_attributes).with({ "name" => "MyString" })
put :update, {:id => gallery.to_param, :gallery => { "name" => "MyString" }}, valid_session
end
it "assigns the requested gallery as @gallery" do
gallery = Gallery.create! valid_attributes
put :update, {:id => gallery.to_param, :gallery => valid_attributes}, valid_session
assigns(:gallery).should eq(gallery)
end
it "redirects to the gallery" do
gallery = Gallery.create! valid_attributes
put :update, {:id => gallery.to_param, :gallery => valid_attributes}, valid_session
response.should redirect_to(gallery)
end
end
describe "with invalid params" do
it "assigns the gallery as @gallery" do
gallery = Gallery.create! valid_attributes
# Trigger the behavior that occurs when invalid params are submitted
Gallery.any_instance.stub(:save).and_return(false)
put :update, {:id => gallery.to_param, :gallery => { "name" => "invalid value" }}, valid_session
assigns(:gallery).should eq(gallery)
end
it "re-renders the 'edit' template" do
gallery = Gallery.create! valid_attributes
# Trigger the behavior that occurs when invalid params are submitted
Gallery.any_instance.stub(:save).and_return(false)
put :update, {:id => gallery.to_param, :gallery => { "name" => "invalid value" }}, valid_session
response.should render_template("edit")
end
end
end
describe "DELETE destroy" do
it "destroys the requested gallery" do
gallery = Gallery.create! valid_attributes
expect {
delete :destroy, {:id => gallery.to_param}, valid_session
}.to change(Gallery, :count).by(-1)
end
it "redirects to the galleries list" do
gallery = Gallery.create! valid_attributes
delete :destroy, {:id => gallery.to_param}, valid_session
response.should redirect_to(galleries_url)
end
end
end

View File

@@ -0,0 +1,160 @@
require 'spec_helper'
# This spec was generated by rspec-rails when you ran the scaffold generator.
# It demonstrates how one might use RSpec to specify the controller code that
# was generated by Rails when you ran the scaffold generator.
#
# It assumes that the implementation code is generated by the rails scaffold
# generator. If you are using any extension libraries to generate different
# controller code, this generated spec may or may not pass.
#
# It only uses APIs available in rails and/or rspec-rails. There are a number
# of tools you can use to make these specs even more expressive, but we're
# sticking to rails and rspec-rails APIs to keep things simple and stable.
#
# Compared to earlier versions of this generator, there is very limited use of
# stubs and message expectations in this spec. Stubs are only used when there
# is no simpler way to get a handle on the object needed for the example.
# Message expectations are only used when there is no simpler way to specify
# that an instance is receiving a specific message.
describe GremienController do
# This should return the minimal set of attributes required to create a valid
# Gremium. As you add validations to Gremium, be sure to
# adjust the attributes here as well.
let(:valid_attributes) { { "name" => "MyString" } }
# This should return the minimal set of values that should be in the session
# in order to pass any filters (e.g. authentication) defined in
# GremienController. Be sure to keep this updated too.
let(:valid_session) { {} }
describe "GET index" do
it "assigns all gremien as @gremien" do
gremium = Gremium.create! valid_attributes
get :index, {}, valid_session
assigns(:gremien).should eq([gremium])
end
end
describe "GET show" do
it "assigns the requested gremium as @gremium" do
gremium = Gremium.create! valid_attributes
get :show, {:id => gremium.to_param}, valid_session
assigns(:gremium).should eq(gremium)
end
end
describe "GET new" do
it "assigns a new gremium as @gremium" do
get :new, {}, valid_session
assigns(:gremium).should be_a_new(Gremium)
end
end
describe "GET edit" do
it "assigns the requested gremium as @gremium" do
gremium = Gremium.create! valid_attributes
get :edit, {:id => gremium.to_param}, valid_session
assigns(:gremium).should eq(gremium)
end
end
describe "POST create" do
describe "with valid params" do
it "creates a new Gremium" do
expect {
post :create, {:gremium => valid_attributes}, valid_session
}.to change(Gremium, :count).by(1)
end
it "assigns a newly created gremium as @gremium" do
post :create, {:gremium => valid_attributes}, valid_session
assigns(:gremium).should be_a(Gremium)
assigns(:gremium).should be_persisted
end
it "redirects to the created gremium" do
post :create, {:gremium => valid_attributes}, valid_session
response.should redirect_to(Gremium.last)
end
end
describe "with invalid params" do
it "assigns a newly created but unsaved gremium as @gremium" do
# Trigger the behavior that occurs when invalid params are submitted
Gremium.any_instance.stub(:save).and_return(false)
post :create, {:gremium => { "name" => "invalid value" }}, valid_session
assigns(:gremium).should be_a_new(Gremium)
end
it "re-renders the 'new' template" do
# Trigger the behavior that occurs when invalid params are submitted
Gremium.any_instance.stub(:save).and_return(false)
post :create, {:gremium => { "name" => "invalid value" }}, valid_session
response.should render_template("new")
end
end
end
describe "PUT update" do
describe "with valid params" do
it "updates the requested gremium" do
gremium = Gremium.create! valid_attributes
# Assuming there are no other gremien in the database, this
# specifies that the Gremium created on the previous line
# receives the :update_attributes message with whatever params are
# submitted in the request.
Gremium.any_instance.should_receive(:update_attributes).with({ "name" => "MyString" })
put :update, {:id => gremium.to_param, :gremium => { "name" => "MyString" }}, valid_session
end
it "assigns the requested gremium as @gremium" do
gremium = Gremium.create! valid_attributes
put :update, {:id => gremium.to_param, :gremium => valid_attributes}, valid_session
assigns(:gremium).should eq(gremium)
end
it "redirects to the gremium" do
gremium = Gremium.create! valid_attributes
put :update, {:id => gremium.to_param, :gremium => valid_attributes}, valid_session
response.should redirect_to(gremium)
end
end
describe "with invalid params" do
it "assigns the gremium as @gremium" do
gremium = Gremium.create! valid_attributes
# Trigger the behavior that occurs when invalid params are submitted
Gremium.any_instance.stub(:save).and_return(false)
put :update, {:id => gremium.to_param, :gremium => { "name" => "invalid value" }}, valid_session
assigns(:gremium).should eq(gremium)
end
it "re-renders the 'edit' template" do
gremium = Gremium.create! valid_attributes
# Trigger the behavior that occurs when invalid params are submitted
Gremium.any_instance.stub(:save).and_return(false)
put :update, {:id => gremium.to_param, :gremium => { "name" => "invalid value" }}, valid_session
response.should render_template("edit")
end
end
end
describe "DELETE destroy" do
it "destroys the requested gremium" do
gremium = Gremium.create! valid_attributes
expect {
delete :destroy, {:id => gremium.to_param}, valid_session
}.to change(Gremium, :count).by(-1)
end
it "redirects to the gremien list" do
gremium = Gremium.create! valid_attributes
delete :destroy, {:id => gremium.to_param}, valid_session
response.should redirect_to(gremien_url)
end
end
end

View File

@@ -0,0 +1,160 @@
require 'spec_helper'
# This spec was generated by rspec-rails when you ran the scaffold generator.
# It demonstrates how one might use RSpec to specify the controller code that
# was generated by Rails when you ran the scaffold generator.
#
# It assumes that the implementation code is generated by the rails scaffold
# generator. If you are using any extension libraries to generate different
# controller code, this generated spec may or may not pass.
#
# It only uses APIs available in rails and/or rspec-rails. There are a number
# of tools you can use to make these specs even more expressive, but we're
# sticking to rails and rspec-rails APIs to keep things simple and stable.
#
# Compared to earlier versions of this generator, there is very limited use of
# stubs and message expectations in this spec. Stubs are only used when there
# is no simpler way to get a handle on the object needed for the example.
# Message expectations are only used when there is no simpler way to specify
# that an instance is receiving a specific message.
describe MembershipsController do
# This should return the minimal set of attributes required to create a valid
# Membership. As you add validations to Membership, be sure to
# adjust the attributes here as well.
let(:valid_attributes) { { "fetprofile_id" => "MyString" } }
# This should return the minimal set of values that should be in the session
# in order to pass any filters (e.g. authentication) defined in
# MembershipsController. Be sure to keep this updated too.
let(:valid_session) { {} }
describe "GET index" do
it "assigns all memberships as @memberships" do
membership = Membership.create! valid_attributes
get :index, {}, valid_session
assigns(:memberships).should eq([membership])
end
end
describe "GET show" do
it "assigns the requested membership as @membership" do
membership = Membership.create! valid_attributes
get :show, {:id => membership.to_param}, valid_session
assigns(:membership).should eq(membership)
end
end
describe "GET new" do
it "assigns a new membership as @membership" do
get :new, {}, valid_session
assigns(:membership).should be_a_new(Membership)
end
end
describe "GET edit" do
it "assigns the requested membership as @membership" do
membership = Membership.create! valid_attributes
get :edit, {:id => membership.to_param}, valid_session
assigns(:membership).should eq(membership)
end
end
describe "POST create" do
describe "with valid params" do
it "creates a new Membership" do
expect {
post :create, {:membership => valid_attributes}, valid_session
}.to change(Membership, :count).by(1)
end
it "assigns a newly created membership as @membership" do
post :create, {:membership => valid_attributes}, valid_session
assigns(:membership).should be_a(Membership)
assigns(:membership).should be_persisted
end
it "redirects to the created membership" do
post :create, {:membership => valid_attributes}, valid_session
response.should redirect_to(Membership.last)
end
end
describe "with invalid params" do
it "assigns a newly created but unsaved membership as @membership" do
# Trigger the behavior that occurs when invalid params are submitted
Membership.any_instance.stub(:save).and_return(false)
post :create, {:membership => { "fetprofile_id" => "invalid value" }}, valid_session
assigns(:membership).should be_a_new(Membership)
end
it "re-renders the 'new' template" do
# Trigger the behavior that occurs when invalid params are submitted
Membership.any_instance.stub(:save).and_return(false)
post :create, {:membership => { "fetprofile_id" => "invalid value" }}, valid_session
response.should render_template("new")
end
end
end
describe "PUT update" do
describe "with valid params" do
it "updates the requested membership" do
membership = Membership.create! valid_attributes
# Assuming there are no other memberships in the database, this
# specifies that the Membership created on the previous line
# receives the :update_attributes message with whatever params are
# submitted in the request.
Membership.any_instance.should_receive(:update_attributes).with({ "fetprofile_id" => "MyString" })
put :update, {:id => membership.to_param, :membership => { "fetprofile_id" => "MyString" }}, valid_session
end
it "assigns the requested membership as @membership" do
membership = Membership.create! valid_attributes
put :update, {:id => membership.to_param, :membership => valid_attributes}, valid_session
assigns(:membership).should eq(membership)
end
it "redirects to the membership" do
membership = Membership.create! valid_attributes
put :update, {:id => membership.to_param, :membership => valid_attributes}, valid_session
response.should redirect_to(membership)
end
end
describe "with invalid params" do
it "assigns the membership as @membership" do
membership = Membership.create! valid_attributes
# Trigger the behavior that occurs when invalid params are submitted
Membership.any_instance.stub(:save).and_return(false)
put :update, {:id => membership.to_param, :membership => { "fetprofile_id" => "invalid value" }}, valid_session
assigns(:membership).should eq(membership)
end
it "re-renders the 'edit' template" do
membership = Membership.create! valid_attributes
# Trigger the behavior that occurs when invalid params are submitted
Membership.any_instance.stub(:save).and_return(false)
put :update, {:id => membership.to_param, :membership => { "fetprofile_id" => "invalid value" }}, valid_session
response.should render_template("edit")
end
end
end
describe "DELETE destroy" do
it "destroys the requested membership" do
membership = Membership.create! valid_attributes
expect {
delete :destroy, {:id => membership.to_param}, valid_session
}.to change(Membership, :count).by(-1)
end
it "redirects to the memberships list" do
membership = Membership.create! valid_attributes
delete :destroy, {:id => membership.to_param}, valid_session
response.should redirect_to(memberships_url)
end
end
end

View File

@@ -0,0 +1,13 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :fetprofile do
vorname "MyString"
nachname "MyString"
short "MyString"
fetmailalias "MyString"
desc "MyText"
picture "MyString"
active false
end
end

10
spec/factories/fotos.rb Normal file
View File

@@ -0,0 +1,10 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :foto do
title "MyString"
desc "MyText"
gallery_id 1
datei "MyString"
end
end

View File

@@ -0,0 +1,9 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :gallery do
name "MyString"
desc "MyText"
datum "2013-08-19"
end
end

View File

@@ -0,0 +1,9 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :gremium do
name "MyString"
desc "MyText"
typ "MyString"
end
end

View File

@@ -0,0 +1,11 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :membership do
fetprofile_id "MyString"
gremium_id "MyString"
start "2013-08-19"
stop "2013-08-19"
typ "MyString"
end
end

View File

@@ -0,0 +1,15 @@
require 'spec_helper'
# Specs in this file have access to a helper object that includes
# the FetprofilesHelper. For example:
#
# describe FetprofilesHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# end
# end
# end
describe FetprofilesHelper do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -0,0 +1,15 @@
require 'spec_helper'
# Specs in this file have access to a helper object that includes
# the FotosHelper. For example:
#
# describe FotosHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# end
# end
# end
describe FotosHelper do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -0,0 +1,15 @@
require 'spec_helper'
# Specs in this file have access to a helper object that includes
# the GalleriesHelper. For example:
#
# describe GalleriesHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# end
# end
# end
describe GalleriesHelper do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -0,0 +1,15 @@
require 'spec_helper'
# Specs in this file have access to a helper object that includes
# the GremienHelper. For example:
#
# describe GremienHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# end
# end
# end
describe GremienHelper do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -0,0 +1,15 @@
require 'spec_helper'
# Specs in this file have access to a helper object that includes
# the MembershipsHelper. For example:
#
# describe MembershipsHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# end
# end
# end
describe MembershipsHelper do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -0,0 +1,5 @@
require 'spec_helper'
describe Fetprofile do
pending "add some examples to (or delete) #{__FILE__}"
end

5
spec/models/foto_spec.rb Normal file
View File

@@ -0,0 +1,5 @@
require 'spec_helper'
describe Foto do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -0,0 +1,5 @@
require 'spec_helper'
describe Gallery do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -0,0 +1,5 @@
require 'spec_helper'
describe Gremium do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -0,0 +1,5 @@
require 'spec_helper'
describe Membership do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -0,0 +1,11 @@
require 'spec_helper'
describe "Fetprofiles" do
describe "GET /fetprofiles" do
it "works! (now write some real specs)" do
# Run the generator again with the --webrat flag if you want to use webrat methods/matchers
get fetprofiles_path
response.status.should be(200)
end
end
end

View File

@@ -0,0 +1,11 @@
require 'spec_helper'
describe "Fotos" do
describe "GET /fotos" do
it "works! (now write some real specs)" do
# Run the generator again with the --webrat flag if you want to use webrat methods/matchers
get fotos_path
response.status.should be(200)
end
end
end

View File

@@ -0,0 +1,11 @@
require 'spec_helper'
describe "Galleries" do
describe "GET /galleries" do
it "works! (now write some real specs)" do
# Run the generator again with the --webrat flag if you want to use webrat methods/matchers
get galleries_path
response.status.should be(200)
end
end
end

View File

@@ -0,0 +1,11 @@
require 'spec_helper'
describe "Gremien" do
describe "GET /gremien" do
it "works! (now write some real specs)" do
# Run the generator again with the --webrat flag if you want to use webrat methods/matchers
get gremien_path
response.status.should be(200)
end
end
end

View File

@@ -0,0 +1,11 @@
require 'spec_helper'
describe "Memberships" do
describe "GET /memberships" do
it "works! (now write some real specs)" do
# Run the generator again with the --webrat flag if you want to use webrat methods/matchers
get memberships_path
response.status.should be(200)
end
end
end

View File

@@ -0,0 +1,35 @@
require "spec_helper"
describe FetprofilesController do
describe "routing" do
it "routes to #index" do
get("/fetprofiles").should route_to("fetprofiles#index")
end
it "routes to #new" do
get("/fetprofiles/new").should route_to("fetprofiles#new")
end
it "routes to #show" do
get("/fetprofiles/1").should route_to("fetprofiles#show", :id => "1")
end
it "routes to #edit" do
get("/fetprofiles/1/edit").should route_to("fetprofiles#edit", :id => "1")
end
it "routes to #create" do
post("/fetprofiles").should route_to("fetprofiles#create")
end
it "routes to #update" do
put("/fetprofiles/1").should route_to("fetprofiles#update", :id => "1")
end
it "routes to #destroy" do
delete("/fetprofiles/1").should route_to("fetprofiles#destroy", :id => "1")
end
end
end

View File

@@ -0,0 +1,35 @@
require "spec_helper"
describe FotosController do
describe "routing" do
it "routes to #index" do
get("/fotos").should route_to("fotos#index")
end
it "routes to #new" do
get("/fotos/new").should route_to("fotos#new")
end
it "routes to #show" do
get("/fotos/1").should route_to("fotos#show", :id => "1")
end
it "routes to #edit" do
get("/fotos/1/edit").should route_to("fotos#edit", :id => "1")
end
it "routes to #create" do
post("/fotos").should route_to("fotos#create")
end
it "routes to #update" do
put("/fotos/1").should route_to("fotos#update", :id => "1")
end
it "routes to #destroy" do
delete("/fotos/1").should route_to("fotos#destroy", :id => "1")
end
end
end

View File

@@ -0,0 +1,35 @@
require "spec_helper"
describe GalleriesController do
describe "routing" do
it "routes to #index" do
get("/galleries").should route_to("galleries#index")
end
it "routes to #new" do
get("/galleries/new").should route_to("galleries#new")
end
it "routes to #show" do
get("/galleries/1").should route_to("galleries#show", :id => "1")
end
it "routes to #edit" do
get("/galleries/1/edit").should route_to("galleries#edit", :id => "1")
end
it "routes to #create" do
post("/galleries").should route_to("galleries#create")
end
it "routes to #update" do
put("/galleries/1").should route_to("galleries#update", :id => "1")
end
it "routes to #destroy" do
delete("/galleries/1").should route_to("galleries#destroy", :id => "1")
end
end
end

View File

@@ -0,0 +1,35 @@
require "spec_helper"
describe GremienController do
describe "routing" do
it "routes to #index" do
get("/gremien").should route_to("gremien#index")
end
it "routes to #new" do
get("/gremien/new").should route_to("gremien#new")
end
it "routes to #show" do
get("/gremien/1").should route_to("gremien#show", :id => "1")
end
it "routes to #edit" do
get("/gremien/1/edit").should route_to("gremien#edit", :id => "1")
end
it "routes to #create" do
post("/gremien").should route_to("gremien#create")
end
it "routes to #update" do
put("/gremien/1").should route_to("gremien#update", :id => "1")
end
it "routes to #destroy" do
delete("/gremien/1").should route_to("gremien#destroy", :id => "1")
end
end
end

View File

@@ -0,0 +1,35 @@
require "spec_helper"
describe MembershipsController do
describe "routing" do
it "routes to #index" do
get("/memberships").should route_to("memberships#index")
end
it "routes to #new" do
get("/memberships/new").should route_to("memberships#new")
end
it "routes to #show" do
get("/memberships/1").should route_to("memberships#show", :id => "1")
end
it "routes to #edit" do
get("/memberships/1/edit").should route_to("memberships#edit", :id => "1")
end
it "routes to #create" do
post("/memberships").should route_to("memberships#create")
end
it "routes to #update" do
put("/memberships/1").should route_to("memberships#update", :id => "1")
end
it "routes to #destroy" do
delete("/memberships/1").should route_to("memberships#destroy", :id => "1")
end
end
end

View File

@@ -0,0 +1,30 @@
require 'spec_helper'
describe "fetprofiles/edit" do
before(:each) do
@fetprofile = assign(:fetprofile, stub_model(Fetprofile,
:vorname => "MyString",
:nachname => "MyString",
:short => "MyString",
:fetmailalias => "MyString",
:desc => "MyText",
:picture => "MyString",
:active => false
))
end
it "renders the edit fetprofile form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", fetprofile_path(@fetprofile), "post" do
assert_select "input#fetprofile_vorname[name=?]", "fetprofile[vorname]"
assert_select "input#fetprofile_nachname[name=?]", "fetprofile[nachname]"
assert_select "input#fetprofile_short[name=?]", "fetprofile[short]"
assert_select "input#fetprofile_fetmailalias[name=?]", "fetprofile[fetmailalias]"
assert_select "textarea#fetprofile_desc[name=?]", "fetprofile[desc]"
assert_select "input#fetprofile_picture[name=?]", "fetprofile[picture]"
assert_select "input#fetprofile_active[name=?]", "fetprofile[active]"
end
end
end

View File

@@ -0,0 +1,38 @@
require 'spec_helper'
describe "fetprofiles/index" do
before(:each) do
assign(:fetprofiles, [
stub_model(Fetprofile,
:vorname => "Vorname",
:nachname => "Nachname",
:short => "Short",
:fetmailalias => "Fetmailalias",
:desc => "MyText",
:picture => "Picture",
:active => false
),
stub_model(Fetprofile,
:vorname => "Vorname",
:nachname => "Nachname",
:short => "Short",
:fetmailalias => "Fetmailalias",
:desc => "MyText",
:picture => "Picture",
:active => false
)
])
end
it "renders a list of fetprofiles" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "tr>td", :text => "Vorname".to_s, :count => 2
assert_select "tr>td", :text => "Nachname".to_s, :count => 2
assert_select "tr>td", :text => "Short".to_s, :count => 2
assert_select "tr>td", :text => "Fetmailalias".to_s, :count => 2
assert_select "tr>td", :text => "MyText".to_s, :count => 2
assert_select "tr>td", :text => "Picture".to_s, :count => 2
assert_select "tr>td", :text => false.to_s, :count => 2
end
end

View File

@@ -0,0 +1,30 @@
require 'spec_helper'
describe "fetprofiles/new" do
before(:each) do
assign(:fetprofile, stub_model(Fetprofile,
:vorname => "MyString",
:nachname => "MyString",
:short => "MyString",
:fetmailalias => "MyString",
:desc => "MyText",
:picture => "MyString",
:active => false
).as_new_record)
end
it "renders new fetprofile form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", fetprofiles_path, "post" do
assert_select "input#fetprofile_vorname[name=?]", "fetprofile[vorname]"
assert_select "input#fetprofile_nachname[name=?]", "fetprofile[nachname]"
assert_select "input#fetprofile_short[name=?]", "fetprofile[short]"
assert_select "input#fetprofile_fetmailalias[name=?]", "fetprofile[fetmailalias]"
assert_select "textarea#fetprofile_desc[name=?]", "fetprofile[desc]"
assert_select "input#fetprofile_picture[name=?]", "fetprofile[picture]"
assert_select "input#fetprofile_active[name=?]", "fetprofile[active]"
end
end
end

View File

@@ -0,0 +1,27 @@
require 'spec_helper'
describe "fetprofiles/show" do
before(:each) do
@fetprofile = assign(:fetprofile, stub_model(Fetprofile,
:vorname => "Vorname",
:nachname => "Nachname",
:short => "Short",
:fetmailalias => "Fetmailalias",
:desc => "MyText",
:picture => "Picture",
:active => false
))
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(/Vorname/)
rendered.should match(/Nachname/)
rendered.should match(/Short/)
rendered.should match(/Fetmailalias/)
rendered.should match(/MyText/)
rendered.should match(/Picture/)
rendered.should match(/false/)
end
end

View File

@@ -0,0 +1,24 @@
require 'spec_helper'
describe "fotos/edit" do
before(:each) do
@foto = assign(:foto, stub_model(Foto,
:title => "MyString",
:desc => "MyText",
:gallery_id => 1,
:datei => "MyString"
))
end
it "renders the edit foto form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", foto_path(@foto), "post" do
assert_select "input#foto_title[name=?]", "foto[title]"
assert_select "textarea#foto_desc[name=?]", "foto[desc]"
assert_select "input#foto_gallery_id[name=?]", "foto[gallery_id]"
assert_select "input#foto_datei[name=?]", "foto[datei]"
end
end
end

View File

@@ -0,0 +1,29 @@
require 'spec_helper'
describe "fotos/index" do
before(:each) do
assign(:fotos, [
stub_model(Foto,
:title => "Title",
:desc => "MyText",
:gallery_id => 1,
:datei => "Datei"
),
stub_model(Foto,
:title => "Title",
:desc => "MyText",
:gallery_id => 1,
:datei => "Datei"
)
])
end
it "renders a list of fotos" 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
assert_select "tr>td", :text => "MyText".to_s, :count => 2
assert_select "tr>td", :text => 1.to_s, :count => 2
assert_select "tr>td", :text => "Datei".to_s, :count => 2
end
end

View File

@@ -0,0 +1,24 @@
require 'spec_helper'
describe "fotos/new" do
before(:each) do
assign(:foto, stub_model(Foto,
:title => "MyString",
:desc => "MyText",
:gallery_id => 1,
:datei => "MyString"
).as_new_record)
end
it "renders new foto form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", fotos_path, "post" do
assert_select "input#foto_title[name=?]", "foto[title]"
assert_select "textarea#foto_desc[name=?]", "foto[desc]"
assert_select "input#foto_gallery_id[name=?]", "foto[gallery_id]"
assert_select "input#foto_datei[name=?]", "foto[datei]"
end
end
end

View File

@@ -0,0 +1,21 @@
require 'spec_helper'
describe "fotos/show" do
before(:each) do
@foto = assign(:foto, stub_model(Foto,
:title => "Title",
:desc => "MyText",
:gallery_id => 1,
:datei => "Datei"
))
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/)
rendered.should match(/MyText/)
rendered.should match(/1/)
rendered.should match(/Datei/)
end
end

View File

@@ -0,0 +1,20 @@
require 'spec_helper'
describe "galleries/edit" do
before(:each) do
@gallery = assign(:gallery, stub_model(Gallery,
:name => "MyString",
:desc => "MyText"
))
end
it "renders the edit gallery form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", gallery_path(@gallery), "post" do
assert_select "input#gallery_name[name=?]", "gallery[name]"
assert_select "textarea#gallery_desc[name=?]", "gallery[desc]"
end
end
end

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

View File

@@ -0,0 +1,20 @@
require 'spec_helper'
describe "galleries/new" do
before(:each) do
assign(:gallery, stub_model(Gallery,
:name => "MyString",
:desc => "MyText"
).as_new_record)
end
it "renders new gallery form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", galleries_path, "post" do
assert_select "input#gallery_name[name=?]", "gallery[name]"
assert_select "textarea#gallery_desc[name=?]", "gallery[desc]"
end
end
end

View File

@@ -0,0 +1,17 @@
require 'spec_helper'
describe "galleries/show" do
before(:each) do
@gallery = assign(:gallery, stub_model(Gallery,
:name => "Name",
:desc => "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(/Name/)
rendered.should match(/MyText/)
end
end

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

View 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

View File

@@ -0,0 +1,22 @@
require 'spec_helper'
describe "gremien/new" do
before(:each) do
assign(:gremium, stub_model(Gremium,
:name => "MyString",
:desc => "MyText",
:typ => "MyString"
).as_new_record)
end
it "renders new gremium form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", gremien_path, "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

View File

@@ -0,0 +1,19 @@
require 'spec_helper'
describe "gremien/show" do
before(:each) do
@gremium = assign(:gremium, stub_model(Gremium,
:name => "Name",
:desc => "MyText",
:typ => "Typ"
))
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(/Name/)
rendered.should match(/MyText/)
rendered.should match(/Typ/)
end
end

View File

@@ -0,0 +1,22 @@
require 'spec_helper'
describe "memberships/edit" do
before(:each) do
@membership = assign(:membership, stub_model(Membership,
:fetprofile_id => "MyString",
:gremium_id => "MyString",
:typ => "MyString"
))
end
it "renders the edit membership form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", membership_path(@membership), "post" do
assert_select "input#membership_fetprofile_id[name=?]", "membership[fetprofile_id]"
assert_select "input#membership_gremium_id[name=?]", "membership[gremium_id]"
assert_select "input#membership_typ[name=?]", "membership[typ]"
end
end
end

View File

@@ -0,0 +1,26 @@
require 'spec_helper'
describe "memberships/index" do
before(:each) do
assign(:memberships, [
stub_model(Membership,
:fetprofile_id => "Fetprofile",
:gremium_id => "Gremium",
:typ => "Typ"
),
stub_model(Membership,
:fetprofile_id => "Fetprofile",
:gremium_id => "Gremium",
:typ => "Typ"
)
])
end
it "renders a list of memberships" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "tr>td", :text => "Fetprofile".to_s, :count => 2
assert_select "tr>td", :text => "Gremium".to_s, :count => 2
assert_select "tr>td", :text => "Typ".to_s, :count => 2
end
end

View File

@@ -0,0 +1,22 @@
require 'spec_helper'
describe "memberships/new" do
before(:each) do
assign(:membership, stub_model(Membership,
:fetprofile_id => "MyString",
:gremium_id => "MyString",
:typ => "MyString"
).as_new_record)
end
it "renders new membership form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", memberships_path, "post" do
assert_select "input#membership_fetprofile_id[name=?]", "membership[fetprofile_id]"
assert_select "input#membership_gremium_id[name=?]", "membership[gremium_id]"
assert_select "input#membership_typ[name=?]", "membership[typ]"
end
end
end

View File

@@ -0,0 +1,19 @@
require 'spec_helper'
describe "memberships/show" do
before(:each) do
@membership = assign(:membership, stub_model(Membership,
:fetprofile_id => "Fetprofile",
:gremium_id => "Gremium",
:typ => "Typ"
))
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(/Fetprofile/)
rendered.should match(/Gremium/)
rendered.should match(/Typ/)
end
end