Conflicts:
	config/routes.rb
This commit is contained in:
Thomas Blazek
2013-08-19 15:47:12 +02:00
131 changed files with 3170 additions and 19 deletions

View File

@@ -14,7 +14,7 @@ indent_mode=2
[project] [project]
name=fetsite name=fetsite
base_path=. base_path=/home/andreas/www/fetsite
description= description=
file_patterns=*.rb;*.erb;*.js;*.coffee;*.sass;Gemfile; file_patterns=*.rb;*.erb;*.js;*.coffee;*.sass;Gemfile;
@@ -23,7 +23,35 @@ long_line_behaviour=1
long_line_column=72 long_line_column=72
[files] [files]
current_page=0 current_page=1
FILE_NAME_0=29;HTML;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fviews%2Fcalendars%2Fshow.html.erb;0;4
FILE_NAME_1=58;HTML;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fviews%2Fcalendars%2F_tabs.html.erb;0;4
FILE_NAME_2=1179;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fmodels%2Fability.rb;0;4
FILE_NAME_3=115;None;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fviews%2Fcalendars%2Fshow.ics.erb;0;4
FILE_NAME_4=454;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fcontrollers%2Fusers_controller.rb;0;4
FILE_NAME_5=571;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fconfig%2Finitializers%2Fdevise.rb;0;4
FILE_NAME_6=627;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fmodels%2Fneuigkeit.rb;0;4
FILE_NAME_7=421;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fmodels%2Fmodulgruppe.rb;0;4
FILE_NAME_8=0;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fmodels%2Flva.rb;0;4
FILE_NAME_9=363;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fmodels%2Fthema.rb;0;4
FILE_NAME_10=255;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fdb%2Fmigrate%2F20130124000300_translate_lvas.rb;0;4
FILE_NAME_11=222;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fdb%2Fmigrate%2F20130818161841_translate_neuigkeiten.rb;0;4
FILE_NAME_12=1383;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fconfig%2Finitializers%2Finflections.rb;0;4
FILE_NAME_13=1010;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fdb%2Fmigrate%2F20130818175905_fix_translation_tables.rb;0;4
FILE_NAME_14=615;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fdb%2Fmigrate%2F20130805171433_translate_themen.rb;0;4
FILE_NAME_15=844;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ftmp%2Ffetsite%2Fdb%2Fmigrate%2F20130818175905_fix_translation_tables.rb;0;4
FILE_NAME_16=114;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ftmp%2Ffetsite%2Fdb%2Fmigrate%2F20130805171433_translate_themen.rb;0;4
FILE_NAME_17=191;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ftmp%2Ffetsite%2Fdb%2Fmigrate%2F20130805143719_create_themen.rb;0;4
FILE_NAME_18=0;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fdb%2Fmigrate%2F20130112110800_create_semesters.rb;0;4
FILE_NAME_19=0;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fdb%2Fmigrate%2F20130113160023_create_versions.rb;0;4
FILE_NAME_20=0;HTML;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fviews%2Frubriken%2Fshow.html.erb;0;4
FILE_NAME_21=161;HTML;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fviews%2Frubriken%2F_tabs.html.erb;0;4
FILE_NAME_22=439;HTML;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fviews%2Flayouts%2Fapplication.html.erb;0;4
FILE_NAME_23=0;HTML;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fviews%2Fusers%2Findex.html.erb;0;4
FILE_NAME_24=3143;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fcontrollers%2Fmoduls_controller.rb;0;4
FILE_NAME_25=0;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fcontrollers%2Fconfig_controller.rb;0;4
FILE_NAME_26=0;Ruby;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fcontrollers%2Fmodulgruppen_controller.rb;0;4
FILE_NAME_27=783;HTML;0;16;1;1;0;%2Fhome%2Fandreas%2Fwww%2Ffetsite%2Fapp%2Fviews%2Flayouts%2Fmenu.html.erb;0;4
[gproject] [gproject]
source_patterns=*.rb;*.erb source_patterns=*.rb;*.erb

View File

@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/

View File

@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/

View File

@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/

View File

@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/

View File

@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/

View File

@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/

View File

@@ -0,0 +1,3 @@
// Place all the styles related to the fetprofiles controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

View File

@@ -0,0 +1,3 @@
// Place all the styles related to the fetzneditions controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

View File

@@ -0,0 +1,3 @@
// Place all the styles related to the fotos controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

View File

@@ -0,0 +1,3 @@
// Place all the styles related to the galleries controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

View File

@@ -0,0 +1,3 @@
// Place all the styles related to the gremien controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

View File

@@ -0,0 +1,3 @@
// Place all the styles related to the memberships controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

View File

@@ -0,0 +1,83 @@
class FetprofilesController < ApplicationController
# GET /fetprofiles
# GET /fetprofiles.json
def index
@fetprofiles = Fetprofile.all
respond_to do |format|
format.html # index.html.erb
format.json { render json: @fetprofiles }
end
end
# GET /fetprofiles/1
# GET /fetprofiles/1.json
def show
@fetprofile = Fetprofile.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @fetprofile }
end
end
# GET /fetprofiles/new
# GET /fetprofiles/new.json
def new
@fetprofile = Fetprofile.new
respond_to do |format|
format.html # new.html.erb
format.json { render json: @fetprofile }
end
end
# GET /fetprofiles/1/edit
def edit
@fetprofile = Fetprofile.find(params[:id])
end
# POST /fetprofiles
# POST /fetprofiles.json
def create
@fetprofile = Fetprofile.new(params[:fetprofile])
respond_to do |format|
if @fetprofile.save
format.html { redirect_to @fetprofile, notice: 'Fetprofile was successfully created.' }
format.json { render json: @fetprofile, status: :created, location: @fetprofile }
else
format.html { render action: "new" }
format.json { render json: @fetprofile.errors, status: :unprocessable_entity }
end
end
end
# PUT /fetprofiles/1
# PUT /fetprofiles/1.json
def update
@fetprofile = Fetprofile.find(params[:id])
respond_to do |format|
if @fetprofile.update_attributes(params[:fetprofile])
format.html { redirect_to @fetprofile, notice: 'Fetprofile was successfully updated.' }
format.json { head :no_content }
else
format.html { render action: "edit" }
format.json { render json: @fetprofile.errors, status: :unprocessable_entity }
end
end
end
# DELETE /fetprofiles/1
# DELETE /fetprofiles/1.json
def destroy
@fetprofile = Fetprofile.find(params[:id])
@fetprofile.destroy
respond_to do |format|
format.html { redirect_to fetprofiles_url }
format.json { head :no_content }
end
end
end

View File

@@ -0,0 +1,83 @@
class FetzneditionsController < ApplicationController
# GET /fetzneditions
# GET /fetzneditions.json
def index
@fetzneditions = Fetznedition.all
respond_to do |format|
format.html # index.html.erb
format.json { render json: @fetzneditions }
end
end
# GET /fetzneditions/1
# GET /fetzneditions/1.json
def show
@fetznedition = Fetznedition.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @fetznedition }
end
end
# GET /fetzneditions/new
# GET /fetzneditions/new.json
def new
@fetznedition = Fetznedition.new
respond_to do |format|
format.html # new.html.erb
format.json { render json: @fetznedition }
end
end
# GET /fetzneditions/1/edit
def edit
@fetznedition = Fetznedition.find(params[:id])
end
# POST /fetzneditions
# POST /fetzneditions.json
def create
@fetznedition = Fetznedition.new(params[:fetznedition])
respond_to do |format|
if @fetznedition.save
format.html { redirect_to @fetznedition, notice: 'Fetznedition was successfully created.' }
format.json { render json: @fetznedition, status: :created, location: @fetznedition }
else
format.html { render action: "new" }
format.json { render json: @fetznedition.errors, status: :unprocessable_entity }
end
end
end
# PUT /fetzneditions/1
# PUT /fetzneditions/1.json
def update
@fetznedition = Fetznedition.find(params[:id])
respond_to do |format|
if @fetznedition.update_attributes(params[:fetznedition])
format.html { redirect_to @fetznedition, notice: 'Fetznedition was successfully updated.' }
format.json { head :no_content }
else
format.html { render action: "edit" }
format.json { render json: @fetznedition.errors, status: :unprocessable_entity }
end
end
end
# DELETE /fetzneditions/1
# DELETE /fetzneditions/1.json
def destroy
@fetznedition = Fetznedition.find(params[:id])
@fetznedition.destroy
respond_to do |format|
format.html { redirect_to fetzneditions_url }
format.json { head :no_content }
end
end
end

View File

@@ -0,0 +1,83 @@
class FotosController < ApplicationController
# GET /fotos
# GET /fotos.json
def index
@fotos = Foto.all
respond_to do |format|
format.html # index.html.erb
format.json { render json: @fotos }
end
end
# GET /fotos/1
# GET /fotos/1.json
def show
@foto = Foto.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @foto }
end
end
# GET /fotos/new
# GET /fotos/new.json
def new
@foto = Foto.new
respond_to do |format|
format.html # new.html.erb
format.json { render json: @foto }
end
end
# GET /fotos/1/edit
def edit
@foto = Foto.find(params[:id])
end
# POST /fotos
# POST /fotos.json
def create
@foto = Foto.new(params[:foto])
respond_to do |format|
if @foto.save
format.html { redirect_to @foto, notice: 'Foto was successfully created.' }
format.json { render json: @foto, status: :created, location: @foto }
else
format.html { render action: "new" }
format.json { render json: @foto.errors, status: :unprocessable_entity }
end
end
end
# PUT /fotos/1
# PUT /fotos/1.json
def update
@foto = Foto.find(params[:id])
respond_to do |format|
if @foto.update_attributes(params[:foto])
format.html { redirect_to @foto, notice: 'Foto was successfully updated.' }
format.json { head :no_content }
else
format.html { render action: "edit" }
format.json { render json: @foto.errors, status: :unprocessable_entity }
end
end
end
# DELETE /fotos/1
# DELETE /fotos/1.json
def destroy
@foto = Foto.find(params[:id])
@foto.destroy
respond_to do |format|
format.html { redirect_to fotos_url }
format.json { head :no_content }
end
end
end

View File

@@ -0,0 +1,83 @@
class GalleriesController < ApplicationController
# GET /galleries
# GET /galleries.json
def index
@galleries = Gallery.all
respond_to do |format|
format.html # index.html.erb
format.json { render json: @galleries }
end
end
# GET /galleries/1
# GET /galleries/1.json
def show
@gallery = Gallery.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @gallery }
end
end
# GET /galleries/new
# GET /galleries/new.json
def new
@gallery = Gallery.new
respond_to do |format|
format.html # new.html.erb
format.json { render json: @gallery }
end
end
# GET /galleries/1/edit
def edit
@gallery = Gallery.find(params[:id])
end
# POST /galleries
# POST /galleries.json
def create
@gallery = Gallery.new(params[:gallery])
respond_to do |format|
if @gallery.save
format.html { redirect_to @gallery, notice: 'Gallery was successfully created.' }
format.json { render json: @gallery, status: :created, location: @gallery }
else
format.html { render action: "new" }
format.json { render json: @gallery.errors, status: :unprocessable_entity }
end
end
end
# PUT /galleries/1
# PUT /galleries/1.json
def update
@gallery = Gallery.find(params[:id])
respond_to do |format|
if @gallery.update_attributes(params[:gallery])
format.html { redirect_to @gallery, notice: 'Gallery was successfully updated.' }
format.json { head :no_content }
else
format.html { render action: "edit" }
format.json { render json: @gallery.errors, status: :unprocessable_entity }
end
end
end
# DELETE /galleries/1
# DELETE /galleries/1.json
def destroy
@gallery = Gallery.find(params[:id])
@gallery.destroy
respond_to do |format|
format.html { redirect_to galleries_url }
format.json { head :no_content }
end
end
end

View File

@@ -0,0 +1,83 @@
class GremienController < ApplicationController
# GET /gremien
# GET /gremien.json
def index
@gremien = Gremium.all
respond_to do |format|
format.html # index.html.erb
format.json { render json: @gremien }
end
end
# GET /gremien/1
# GET /gremien/1.json
def show
@gremium = Gremium.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @gremium }
end
end
# GET /gremien/new
# GET /gremien/new.json
def new
@gremium = Gremium.new
respond_to do |format|
format.html # new.html.erb
format.json { render json: @gremium }
end
end
# GET /gremien/1/edit
def edit
@gremium = Gremium.find(params[:id])
end
# POST /gremien
# POST /gremien.json
def create
@gremium = Gremium.new(params[:gremium])
respond_to do |format|
if @gremium.save
format.html { redirect_to @gremium, notice: 'Gremium was successfully created.' }
format.json { render json: @gremium, status: :created, location: @gremium }
else
format.html { render action: "new" }
format.json { render json: @gremium.errors, status: :unprocessable_entity }
end
end
end
# PUT /gremien/1
# PUT /gremien/1.json
def update
@gremium = Gremium.find(params[:id])
respond_to do |format|
if @gremium.update_attributes(params[:gremium])
format.html { redirect_to @gremium, notice: 'Gremium was successfully updated.' }
format.json { head :no_content }
else
format.html { render action: "edit" }
format.json { render json: @gremium.errors, status: :unprocessable_entity }
end
end
end
# DELETE /gremien/1
# DELETE /gremien/1.json
def destroy
@gremium = Gremium.find(params[:id])
@gremium.destroy
respond_to do |format|
format.html { redirect_to gremien_url }
format.json { head :no_content }
end
end
end

View File

@@ -0,0 +1,83 @@
class MembershipsController < ApplicationController
# GET /memberships
# GET /memberships.json
def index
@memberships = Membership.all
respond_to do |format|
format.html # index.html.erb
format.json { render json: @memberships }
end
end
# GET /memberships/1
# GET /memberships/1.json
def show
@membership = Membership.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @membership }
end
end
# GET /memberships/new
# GET /memberships/new.json
def new
@membership = Membership.new
respond_to do |format|
format.html # new.html.erb
format.json { render json: @membership }
end
end
# GET /memberships/1/edit
def edit
@membership = Membership.find(params[:id])
end
# POST /memberships
# POST /memberships.json
def create
@membership = Membership.new(params[:membership])
respond_to do |format|
if @membership.save
format.html { redirect_to @membership, notice: 'Membership was successfully created.' }
format.json { render json: @membership, status: :created, location: @membership }
else
format.html { render action: "new" }
format.json { render json: @membership.errors, status: :unprocessable_entity }
end
end
end
# PUT /memberships/1
# PUT /memberships/1.json
def update
@membership = Membership.find(params[:id])
respond_to do |format|
if @membership.update_attributes(params[:membership])
format.html { redirect_to @membership, notice: 'Membership was successfully updated.' }
format.json { head :no_content }
else
format.html { render action: "edit" }
format.json { render json: @membership.errors, status: :unprocessable_entity }
end
end
end
# DELETE /memberships/1
# DELETE /memberships/1.json
def destroy
@membership = Membership.find(params[:id])
@membership.destroy
respond_to do |format|
format.html { redirect_to memberships_url }
format.json { head :no_content }
end
end
end

View File

@@ -0,0 +1,2 @@
module FetprofilesHelper
end

View File

@@ -0,0 +1,2 @@
module FetzneditionsHelper
end

View File

@@ -0,0 +1,2 @@
module FotosHelper
end

View File

@@ -0,0 +1,2 @@
module GalleriesHelper
end

View File

@@ -0,0 +1,2 @@
module GremienHelper
end

View File

@@ -0,0 +1,2 @@
module MembershipsHelper
end

View File

@@ -27,7 +27,7 @@ class Ability
# For Debug allow everything # For Debug allow everything
# Remove this line in production environment and for testing user management # Remove this line in production environment and for testing user management
can :manage, :all # can :manage, :all
can :addfetuser, User can :addfetuser, User
can :addfetadmin, User can :addfetadmin, User
can [:show, :index], Studium can [:show, :index], Studium
@@ -62,7 +62,7 @@ class Ability
if user.has_role?("newsadmin") || user.has_role?("fetadmin") if user.has_role?("newsadmin") || user.has_role?("fetadmin")
can :addmoderator, Rubrik can :addmoderator, Rubrik
end end
can [:show, :index], [Rubrik,Neuigkeit] can [:show, :index], [Rubrik,Neuigkeit]
if user.has_role?("newsadmin") || user.has_role?( "fetadmin") || user.has_role?( "fetuser") if user.has_role?("newsadmin") || user.has_role?( "fetadmin") || user.has_role?( "fetuser")
can :manage, Rubrik can :manage, Rubrik

3
app/models/fetprofile.rb Normal file
View File

@@ -0,0 +1,3 @@
class Fetprofile < ActiveRecord::Base
attr_accessible :active, :desc, :fetmailalias, :nachname, :picture, :short, :vorname
end

View File

@@ -0,0 +1,3 @@
class Fetznedition < ActiveRecord::Base
attr_accessible :datei, :datum, :desc, :title
end

3
app/models/foto.rb Normal file
View File

@@ -0,0 +1,3 @@
class Foto < ActiveRecord::Base
attr_accessible :datei, :desc, :gallery_id, :title
end

3
app/models/gallery.rb Normal file
View File

@@ -0,0 +1,3 @@
class Gallery < ActiveRecord::Base
attr_accessible :datum, :desc, :name
end

3
app/models/gremium.rb Normal file
View File

@@ -0,0 +1,3 @@
class Gremium < ActiveRecord::Base
attr_accessible :desc, :name, :typ
end

3
app/models/membership.rb Normal file
View File

@@ -0,0 +1,3 @@
class Membership < ActiveRecord::Base
attr_accessible :fetprofile_id, :gremium_id, :start, :stop, :typ
end

View File

@@ -0,0 +1,15 @@
<%= semantic_form_for @fetprofile do |f| %>
<%= f.inputs do %>
<%= f.input :vorname %>
<%= f.input :nachname %>
<%= f.input :short %>
<%= f.input :fetmailalias %>
<%= f.input :desc %>
<%= f.input :picture %>
<%= f.input :active %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

@@ -0,0 +1,6 @@
<h1>Editing fetprofile</h1>
<%= render 'form' %>
<%= link_to 'Show', @fetprofile %> |
<%= link_to 'Back', fetprofiles_path %>

View File

@@ -0,0 +1,35 @@
<h1>Listing fetprofiles</h1>
<table>
<tr>
<th>Vorname</th>
<th>Nachname</th>
<th>Short</th>
<th>Fetmailalias</th>
<th>Desc</th>
<th>Picture</th>
<th>Active</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @fetprofiles.each do |fetprofile| %>
<tr>
<td><%= fetprofile.vorname %></td>
<td><%= fetprofile.nachname %></td>
<td><%= fetprofile.short %></td>
<td><%= fetprofile.fetmailalias %></td>
<td><%= fetprofile.desc %></td>
<td><%= fetprofile.picture %></td>
<td><%= fetprofile.active %></td>
<td><%= link_to 'Show', fetprofile %></td>
<td><%= link_to 'Edit', edit_fetprofile_path(fetprofile) %></td>
<td><%= link_to 'Destroy', fetprofile, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Fetprofile', new_fetprofile_path %>

View File

@@ -0,0 +1,5 @@
<h1>New fetprofile</h1>
<%= render 'form' %>
<%= link_to 'Back', fetprofiles_path %>

View File

@@ -0,0 +1,40 @@
<p id="notice"><%= notice %></p>
<p>
<b>Vorname:</b>
<%= @fetprofile.vorname %>
</p>
<p>
<b>Nachname:</b>
<%= @fetprofile.nachname %>
</p>
<p>
<b>Short:</b>
<%= @fetprofile.short %>
</p>
<p>
<b>Fetmailalias:</b>
<%= @fetprofile.fetmailalias %>
</p>
<p>
<b>Desc:</b>
<%= @fetprofile.desc %>
</p>
<p>
<b>Picture:</b>
<%= @fetprofile.picture %>
</p>
<p>
<b>Active:</b>
<%= @fetprofile.active %>
</p>
<%= link_to 'Edit', edit_fetprofile_path(@fetprofile) %> |
<%= link_to 'Back', fetprofiles_path %>

View File

@@ -0,0 +1,12 @@
<%= semantic_form_for @fetznedition do |f| %>
<%= f.inputs do %>
<%= f.input :title %>
<%= f.input :desc %>
<%= f.input :datum %>
<%= f.input :datei %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

@@ -0,0 +1,6 @@
<h1>Editing fetznedition</h1>
<%= render 'form' %>
<%= link_to 'Show', @fetznedition %> |
<%= link_to 'Back', fetzneditions_path %>

View File

@@ -0,0 +1,29 @@
<h1>Listing fetzneditions</h1>
<table>
<tr>
<th>Title</th>
<th>Desc</th>
<th>Datum</th>
<th>Datei</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @fetzneditions.each do |fetznedition| %>
<tr>
<td><%= fetznedition.title %></td>
<td><%= fetznedition.desc %></td>
<td><%= fetznedition.datum %></td>
<td><%= fetznedition.datei %></td>
<td><%= link_to 'Show', fetznedition %></td>
<td><%= link_to 'Edit', edit_fetznedition_path(fetznedition) %></td>
<td><%= link_to 'Destroy', fetznedition, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Fetznedition', new_fetznedition_path %>

View File

@@ -0,0 +1,5 @@
<h1>New fetznedition</h1>
<%= render 'form' %>
<%= link_to 'Back', fetzneditions_path %>

View File

@@ -0,0 +1,25 @@
<p id="notice"><%= notice %></p>
<p>
<b>Title:</b>
<%= @fetznedition.title %>
</p>
<p>
<b>Desc:</b>
<%= @fetznedition.desc %>
</p>
<p>
<b>Datum:</b>
<%= @fetznedition.datum %>
</p>
<p>
<b>Datei:</b>
<%= @fetznedition.datei %>
</p>
<%= link_to 'Edit', edit_fetznedition_path(@fetznedition) %> |
<%= link_to 'Back', fetzneditions_path %>

View File

@@ -0,0 +1,12 @@
<%= semantic_form_for @foto do |f| %>
<%= f.inputs do %>
<%= f.input :title %>
<%= f.input :desc %>
<%= f.input :gallery_id %>
<%= f.input :datei %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

@@ -0,0 +1,6 @@
<h1>Editing foto</h1>
<%= render 'form' %>
<%= link_to 'Show', @foto %> |
<%= link_to 'Back', fotos_path %>

View File

@@ -0,0 +1,29 @@
<h1>Listing fotos</h1>
<table>
<tr>
<th>Title</th>
<th>Desc</th>
<th>Gallery</th>
<th>Datei</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @fotos.each do |foto| %>
<tr>
<td><%= foto.title %></td>
<td><%= foto.desc %></td>
<td><%= foto.gallery_id %></td>
<td><%= foto.datei %></td>
<td><%= link_to 'Show', foto %></td>
<td><%= link_to 'Edit', edit_foto_path(foto) %></td>
<td><%= link_to 'Destroy', foto, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Foto', new_foto_path %>

View File

@@ -0,0 +1,5 @@
<h1>New foto</h1>
<%= render 'form' %>
<%= link_to 'Back', fotos_path %>

View File

@@ -0,0 +1,25 @@
<p id="notice"><%= notice %></p>
<p>
<b>Title:</b>
<%= @foto.title %>
</p>
<p>
<b>Desc:</b>
<%= @foto.desc %>
</p>
<p>
<b>Gallery:</b>
<%= @foto.gallery_id %>
</p>
<p>
<b>Datei:</b>
<%= @foto.datei %>
</p>
<%= link_to 'Edit', edit_foto_path(@foto) %> |
<%= link_to 'Back', fotos_path %>

View File

@@ -0,0 +1,11 @@
<%= semantic_form_for @gallery do |f| %>
<%= f.inputs do %>
<%= f.input :name %>
<%= f.input :desc %>
<%= f.input :datum %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

@@ -0,0 +1,6 @@
<h1>Editing gallery</h1>
<%= render 'form' %>
<%= link_to 'Show', @gallery %> |
<%= link_to 'Back', galleries_path %>

View File

@@ -0,0 +1,27 @@
<h1>Listing galleries</h1>
<table>
<tr>
<th>Name</th>
<th>Desc</th>
<th>Datum</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @galleries.each do |gallery| %>
<tr>
<td><%= gallery.name %></td>
<td><%= gallery.desc %></td>
<td><%= gallery.datum %></td>
<td><%= link_to 'Show', gallery %></td>
<td><%= link_to 'Edit', edit_gallery_path(gallery) %></td>
<td><%= link_to 'Destroy', gallery, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Gallery', new_gallery_path %>

View File

@@ -0,0 +1,5 @@
<h1>New gallery</h1>
<%= render 'form' %>
<%= link_to 'Back', galleries_path %>

View File

@@ -0,0 +1,20 @@
<p id="notice"><%= notice %></p>
<p>
<b>Name:</b>
<%= @gallery.name %>
</p>
<p>
<b>Desc:</b>
<%= @gallery.desc %>
</p>
<p>
<b>Datum:</b>
<%= @gallery.datum %>
</p>
<%= link_to 'Edit', edit_gallery_path(@gallery) %> |
<%= link_to 'Back', galleries_path %>

View File

@@ -0,0 +1,11 @@
<%= semantic_form_for @gremium do |f| %>
<%= f.inputs do %>
<%= f.input :name %>
<%= f.input :desc %>
<%= f.input :typ %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

@@ -0,0 +1,6 @@
<h1>Editing gremium</h1>
<%= render 'form' %>
<%= link_to 'Show', @gremium %> |
<%= link_to 'Back', gremien_path %>

View File

@@ -0,0 +1,27 @@
<h1>Listing gremien</h1>
<table>
<tr>
<th>Name</th>
<th>Desc</th>
<th>Typ</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @gremien.each do |gremium| %>
<tr>
<td><%= gremium.name %></td>
<td><%= gremium.desc %></td>
<td><%= gremium.typ %></td>
<td><%= link_to 'Show', gremium %></td>
<td><%= link_to 'Edit', edit_gremium_path(gremium) %></td>
<td><%= link_to 'Destroy', gremium, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Gremium', new_gremium_path %>

View File

@@ -0,0 +1,5 @@
<h1>New gremium</h1>
<%= render 'form' %>
<%= link_to 'Back', gremien_path %>

View File

@@ -0,0 +1,20 @@
<p id="notice"><%= notice %></p>
<p>
<b>Name:</b>
<%= @gremium.name %>
</p>
<p>
<b>Desc:</b>
<%= @gremium.desc %>
</p>
<p>
<b>Typ:</b>
<%= @gremium.typ %>
</p>
<%= link_to 'Edit', edit_gremium_path(@gremium) %> |
<%= link_to 'Back', gremien_path %>

View File

@@ -0,0 +1,13 @@
<%= semantic_form_for @membership do |f| %>
<%= f.inputs do %>
<%= f.input :fetprofile_id %>
<%= f.input :gremium_id %>
<%= f.input :start %>
<%= f.input :stop %>
<%= f.input :typ %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :input %>
<% end %>
<% end %>

View File

@@ -0,0 +1,6 @@
<h1>Editing membership</h1>
<%= render 'form' %>
<%= link_to 'Show', @membership %> |
<%= link_to 'Back', memberships_path %>

View File

@@ -0,0 +1,31 @@
<h1>Listing memberships</h1>
<table>
<tr>
<th>Fetprofile</th>
<th>Gremium</th>
<th>Start</th>
<th>Stop</th>
<th>Typ</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @memberships.each do |membership| %>
<tr>
<td><%= membership.fetprofile_id %></td>
<td><%= membership.gremium_id %></td>
<td><%= membership.start %></td>
<td><%= membership.stop %></td>
<td><%= membership.typ %></td>
<td><%= link_to 'Show', membership %></td>
<td><%= link_to 'Edit', edit_membership_path(membership) %></td>
<td><%= link_to 'Destroy', membership, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Membership', new_membership_path %>

View File

@@ -0,0 +1,5 @@
<h1>New membership</h1>
<%= render 'form' %>
<%= link_to 'Back', memberships_path %>

View File

@@ -0,0 +1,30 @@
<p id="notice"><%= notice %></p>
<p>
<b>Fetprofile:</b>
<%= @membership.fetprofile_id %>
</p>
<p>
<b>Gremium:</b>
<%= @membership.gremium_id %>
</p>
<p>
<b>Start:</b>
<%= @membership.start %>
</p>
<p>
<b>Stop:</b>
<%= @membership.stop %>
</p>
<p>
<b>Typ:</b>
<%= @membership.typ %>
</p>
<%= link_to 'Edit', edit_membership_path(@membership) %> |
<%= link_to 'Back', memberships_path %>

View File

@@ -34,4 +34,8 @@ inflect.irregular 'thema', 'themen'
inflect.plural 'frage', 'fragen' inflect.plural 'frage', 'fragen'
inflect.singular 'fragen', 'frage' inflect.singular 'fragen', 'frage'
inflect.irregular 'frage', 'fragen' inflect.irregular 'frage', 'fragen'
inflect.singular 'gremien', 'gremium'
inflect.irregular 'gremium', 'gremien'
inflect.plural 'gremium', 'gremien'
end end

View File

@@ -1,8 +1,5 @@
Fetsite::Application.routes.draw do Fetsite::Application.routes.draw do
resources :lecturers
devise_for :users devise_for :users
resources :home, :only=>[:index] resources :home, :only=>[:index]
#get 'home',:controller=>home,:action=>:index,:as=>"home_index" #get 'home',:controller=>home,:action=>:index,:as=>"home_index"
@@ -37,6 +34,25 @@
end end
get 'verwalten/studien', :controller=>:studien, :action=>:verwalten, :as=>'studien_verwalten' get 'verwalten/studien', :controller=>:studien, :action=>:verwalten, :as=>'studien_verwalten'
resources :fetzneditions
resources :fotos
resources :galleries
resources :memberships
resources :gremien
resources :fetprofiles
resources :lecturers resources :lecturers
resources :semesters resources :semesters
resources :moduls resources :moduls
@@ -56,14 +72,14 @@
get 'home/startdev', :controller=>:home, :action=>:startdev, :as=>'home_startdev' get 'home/startdev', :controller=>:home, :action=>:startdev, :as=>'home_startdev'
resources :beispiele resources :beispiele
resources :themen resources :themen
resources :themengruppen do resources :themengruppen do
resources :themen, :only=>[:new, :show] resources :themen, :only=>[:new, :show]
end end
resources :calendars resources :calendars
get 'verwalten/calendars', :controller=>:calendars, :action=>:verwalten, :as=>'calendars_verwalten' get 'verwalten/calendars', :controller=>:calendars, :action=>:verwalten, :as=>'calendars_verwalten'
resources :calentries resources :calentries
end end
# The priority is based upon order of creation: # The priority is based upon order of creation:

View File

@@ -4,14 +4,13 @@ class TranslateStudien < ActiveRecord::Migration
:desc => :text, :desc => :text,
:shortdesc => :text :shortdesc => :text
}, { }, {
#:migrate_data => true :migrate_data => true
}) })
add_column :studium_translations, :studien_id, :integer
remove_column :studium_translations, :studium_id
end end
def self.down def self.down
Studium.drop_translation_table! #:migrate_data => true Studium.drop_translation_table! :migrate_data => true
end end
end end

View File

@@ -0,0 +1,15 @@
class CreateFetprofiles < ActiveRecord::Migration
def change
create_table :fetprofiles do |t|
t.string :vorname
t.string :nachname
t.string :short
t.string :fetmailalias
t.text :desc
t.string :picture
t.boolean :active
t.timestamps
end
end
end

View File

@@ -0,0 +1,11 @@
class CreateGremien < ActiveRecord::Migration
def change
create_table :gremien do |t|
t.string :name
t.text :desc
t.string :typ
t.timestamps
end
end
end

View File

@@ -0,0 +1,13 @@
class CreateMemberships < ActiveRecord::Migration
def change
create_table :memberships do |t|
t.string :fetprofile_id
t.string :gremium_id
t.date :start
t.date :stop
t.string :typ
t.timestamps
end
end
end

View File

@@ -0,0 +1,11 @@
class CreateGalleries < ActiveRecord::Migration
def change
create_table :galleries do |t|
t.string :name
t.text :desc
t.date :datum
t.timestamps
end
end
end

View File

@@ -0,0 +1,12 @@
class CreateFotos < ActiveRecord::Migration
def change
create_table :fotos do |t|
t.string :title
t.text :desc
t.integer :gallery_id
t.string :datei
t.timestamps
end
end
end

View File

@@ -0,0 +1,12 @@
class CreateFetzneditions < ActiveRecord::Migration
def change
create_table :fetzneditions do |t|
t.string :title
t.text :desc
t.date :datum
t.string :datei
t.timestamps
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 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 FetzneditionsController do
# This should return the minimal set of attributes required to create a valid
# Fetznedition. As you add validations to Fetznedition, 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
# FetzneditionsController. Be sure to keep this updated too.
let(:valid_session) { {} }
describe "GET index" do
it "assigns all fetzneditions as @fetzneditions" do
fetznedition = Fetznedition.create! valid_attributes
get :index, {}, valid_session
assigns(:fetzneditions).should eq([fetznedition])
end
end
describe "GET show" do
it "assigns the requested fetznedition as @fetznedition" do
fetznedition = Fetznedition.create! valid_attributes
get :show, {:id => fetznedition.to_param}, valid_session
assigns(:fetznedition).should eq(fetznedition)
end
end
describe "GET new" do
it "assigns a new fetznedition as @fetznedition" do
get :new, {}, valid_session
assigns(:fetznedition).should be_a_new(Fetznedition)
end
end
describe "GET edit" do
it "assigns the requested fetznedition as @fetznedition" do
fetznedition = Fetznedition.create! valid_attributes
get :edit, {:id => fetznedition.to_param}, valid_session
assigns(:fetznedition).should eq(fetznedition)
end
end
describe "POST create" do
describe "with valid params" do
it "creates a new Fetznedition" do
expect {
post :create, {:fetznedition => valid_attributes}, valid_session
}.to change(Fetznedition, :count).by(1)
end
it "assigns a newly created fetznedition as @fetznedition" do
post :create, {:fetznedition => valid_attributes}, valid_session
assigns(:fetznedition).should be_a(Fetznedition)
assigns(:fetznedition).should be_persisted
end
it "redirects to the created fetznedition" do
post :create, {:fetznedition => valid_attributes}, valid_session
response.should redirect_to(Fetznedition.last)
end
end
describe "with invalid params" do
it "assigns a newly created but unsaved fetznedition as @fetznedition" do
# Trigger the behavior that occurs when invalid params are submitted
Fetznedition.any_instance.stub(:save).and_return(false)
post :create, {:fetznedition => { "title" => "invalid value" }}, valid_session
assigns(:fetznedition).should be_a_new(Fetznedition)
end
it "re-renders the 'new' template" do
# Trigger the behavior that occurs when invalid params are submitted
Fetznedition.any_instance.stub(:save).and_return(false)
post :create, {:fetznedition => { "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 fetznedition" do
fetznedition = Fetznedition.create! valid_attributes
# Assuming there are no other fetzneditions in the database, this
# specifies that the Fetznedition created on the previous line
# receives the :update_attributes message with whatever params are
# submitted in the request.
Fetznedition.any_instance.should_receive(:update_attributes).with({ "title" => "MyString" })
put :update, {:id => fetznedition.to_param, :fetznedition => { "title" => "MyString" }}, valid_session
end
it "assigns the requested fetznedition as @fetznedition" do
fetznedition = Fetznedition.create! valid_attributes
put :update, {:id => fetznedition.to_param, :fetznedition => valid_attributes}, valid_session
assigns(:fetznedition).should eq(fetznedition)
end
it "redirects to the fetznedition" do
fetznedition = Fetznedition.create! valid_attributes
put :update, {:id => fetznedition.to_param, :fetznedition => valid_attributes}, valid_session
response.should redirect_to(fetznedition)
end
end
describe "with invalid params" do
it "assigns the fetznedition as @fetznedition" do
fetznedition = Fetznedition.create! valid_attributes
# Trigger the behavior that occurs when invalid params are submitted
Fetznedition.any_instance.stub(:save).and_return(false)
put :update, {:id => fetznedition.to_param, :fetznedition => { "title" => "invalid value" }}, valid_session
assigns(:fetznedition).should eq(fetznedition)
end
it "re-renders the 'edit' template" do
fetznedition = Fetznedition.create! valid_attributes
# Trigger the behavior that occurs when invalid params are submitted
Fetznedition.any_instance.stub(:save).and_return(false)
put :update, {:id => fetznedition.to_param, :fetznedition => { "title" => "invalid value" }}, valid_session
response.should render_template("edit")
end
end
end
describe "DELETE destroy" do
it "destroys the requested fetznedition" do
fetznedition = Fetznedition.create! valid_attributes
expect {
delete :destroy, {:id => fetznedition.to_param}, valid_session
}.to change(Fetznedition, :count).by(-1)
end
it "redirects to the fetzneditions list" do
fetznedition = Fetznedition.create! valid_attributes
delete :destroy, {:id => fetznedition.to_param}, valid_session
response.should redirect_to(fetzneditions_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

View File

@@ -0,0 +1,10 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :fetznedition do
title "MyString"
desc "MyText"
datum "2013-08-19"
datei "MyString"
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 FetzneditionsHelper. For example:
#
# describe FetzneditionsHelper 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 FetzneditionsHelper 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

View File

@@ -0,0 +1,5 @@
require 'spec_helper'
describe Fetznedition 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 "Fetzneditions" do
describe "GET /fetzneditions" 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 fetzneditions_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

Some files were not shown because too many files have changed in this diff Show More