diff --git a/app/assets/javascripts/groupgroups.js.coffee b/app/assets/javascripts/groupgroups.js.coffee new file mode 100644 index 00000000..76156794 --- /dev/null +++ b/app/assets/javascripts/groupgroups.js.coffee @@ -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/ diff --git a/app/assets/javascripts/groupitems.js.coffee b/app/assets/javascripts/groupitems.js.coffee new file mode 100644 index 00000000..76156794 --- /dev/null +++ b/app/assets/javascripts/groupitems.js.coffee @@ -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/ diff --git a/app/assets/javascripts/grouppeople.js.coffee b/app/assets/javascripts/grouppeople.js.coffee new file mode 100644 index 00000000..76156794 --- /dev/null +++ b/app/assets/javascripts/grouppeople.js.coffee @@ -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/ diff --git a/app/assets/javascripts/itemitems.js.coffee b/app/assets/javascripts/itemitems.js.coffee new file mode 100644 index 00000000..76156794 --- /dev/null +++ b/app/assets/javascripts/itemitems.js.coffee @@ -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/ diff --git a/app/assets/javascripts/personitems.js.coffee b/app/assets/javascripts/personitems.js.coffee new file mode 100644 index 00000000..76156794 --- /dev/null +++ b/app/assets/javascripts/personitems.js.coffee @@ -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/ diff --git a/app/assets/stylesheets/groupgroups.css.scss b/app/assets/stylesheets/groupgroups.css.scss new file mode 100644 index 00000000..57fcedd0 --- /dev/null +++ b/app/assets/stylesheets/groupgroups.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Groupgroups controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/groupitems.css.scss b/app/assets/stylesheets/groupitems.css.scss new file mode 100644 index 00000000..cc031fc6 --- /dev/null +++ b/app/assets/stylesheets/groupitems.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Groupitems controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/grouppeople.css.scss b/app/assets/stylesheets/grouppeople.css.scss new file mode 100644 index 00000000..3e2ccadf --- /dev/null +++ b/app/assets/stylesheets/grouppeople.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Grouppeople controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/itemitems.css.scss b/app/assets/stylesheets/itemitems.css.scss new file mode 100644 index 00000000..65a12222 --- /dev/null +++ b/app/assets/stylesheets/itemitems.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Itemitems controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/personitems.css.scss b/app/assets/stylesheets/personitems.css.scss new file mode 100644 index 00000000..b4511e20 --- /dev/null +++ b/app/assets/stylesheets/personitems.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Personitems controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/controllers/groupgroups_controller.rb b/app/controllers/groupgroups_controller.rb new file mode 100644 index 00000000..94841926 --- /dev/null +++ b/app/controllers/groupgroups_controller.rb @@ -0,0 +1,2 @@ +class GroupgroupsController < ApplicationController +end diff --git a/app/controllers/groupitems_controller.rb b/app/controllers/groupitems_controller.rb new file mode 100644 index 00000000..65ad0926 --- /dev/null +++ b/app/controllers/groupitems_controller.rb @@ -0,0 +1,2 @@ +class GroupitemsController < ApplicationController +end diff --git a/app/controllers/grouppeople_controller.rb b/app/controllers/grouppeople_controller.rb new file mode 100644 index 00000000..f820d69f --- /dev/null +++ b/app/controllers/grouppeople_controller.rb @@ -0,0 +1,2 @@ +class GrouppeopleController < ApplicationController +end diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index d76430be..2259df53 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -42,7 +42,7 @@ class GroupsController < ApplicationController @group.save respond_to do |format| - format.html {render :index} + format.html { respond_with(@user, location: restore(default: group_url(@group))) } format.js { respond_with(@group) } end @@ -51,8 +51,22 @@ class GroupsController < ApplicationController # GET /groups/:id/edit def edit @group = Group.find_by_id(params[:id]) + + @ingroups1 = @group.parent_groups + if @ingroups1.count > 0 + @outgroups1 = Group.find(:all, :conditions => ['id not in (?) AND id != ?', @ingroups1.map(&:id), @group.id]) + else + @outgroups1 = Group.find(:all, :conditions => ['id != ?', @group.id]) + end + + @ingroups2 = @group.child_groups + if @ingroups2.count > 0 + @outgroups2 = Group.find(:all, :conditions => ['id not in (?) AND id != ?', @ingroups2.map(&:id), @group.id]) + else + @outgroups2 = Group.find(:all, :conditions => ['id != ?', @group.id]) + end - respond_with(@group) + respond_with(@group, @ingroups1, @outgroups1, @ingroups2, @outgroups2) end # PUT /groups/:id @@ -62,6 +76,46 @@ class GroupsController < ApplicationController @group.attributes = params[:group] if @group @group.save if @group + + #remove the selected parent groups + if params[:ingroups1] + @ingroups1 = params[:ingroups1] + @ingroups1.each do |g| + @connection = Groupgroup.where("parent_group_id = ? AND group_id = ?", g, @group.id).first + @connection.delete + end + end + + #remove the selected parent groups + if params[:outgroups1] + @outgroups1 = params[:outgroups1] + @outgroups1.each do |g| + belongs = Groupgroup.new + belongs.parent_group_id = g + belongs.group_id = @group.id + belongs.save! + end + end + + #remove the selected children groups + if params[:ingroups2] + @ingroups2 = params[:ingroups2] + @ingroups2.each do |g| + @connection = Groupgroup.where("parent_group_id = ? AND group_id = ?", @group.id, g).first + @connection.delete + end + end + + #add the selected children groups + if params[:outgroups2] + @outgroups2 = params[:outgroups2] + @outgroups2.each do |g| + belongs = Groupgroup.new + belongs.parent_group_id = @group.id + belongs.group_id = g + belongs.save! + end + end respond_with(@user, location: restore(default: root_url)) do |format| end diff --git a/app/controllers/itemitems_controller.rb b/app/controllers/itemitems_controller.rb new file mode 100644 index 00000000..ee80c7b8 --- /dev/null +++ b/app/controllers/itemitems_controller.rb @@ -0,0 +1,2 @@ +class ItemitemsController < ApplicationController +end diff --git a/app/controllers/items_controller.rb b/app/controllers/items_controller.rb index 9a8fab24..745756c4 100644 --- a/app/controllers/items_controller.rb +++ b/app/controllers/items_controller.rb @@ -46,7 +46,7 @@ class ItemsController < ApplicationController @item.save respond_to do |format| - format.html {render :index} + format.html { respond_with(@user, location: restore(default: item_url(@item))) } format.js { respond_with(@item) } end @@ -55,8 +55,36 @@ class ItemsController < ApplicationController # GET /items/:id/edit def edit @item = Item.find_by_id(params[:id]) + + @ingroups = @item.groups + if @ingroups.count > 0 + @outgroups = Group.find(:all, :conditions => ['id not in (?)', @ingroups.map(&:id)]) + else + @outgroups = Group.all + end + + @inpeople = @item.people + if @inpeople.count > 0 + @outpeople = Person.find(:all, :conditions => ['id not in (?)', @inpeople.map(&:id)]) + else + @outpeople = Person.all + end + + @initems1 = @item.parent_items + if @initems1.count > 0 + @outitems1 = Item.find(:all, :conditions => ['id not in (?) AND id != ?', @initems1.map(&:id), @item.id]) + else + @outitems1 = Item.find(:all, :conditions => ['id != ?', @item.id]) + end + + @initems2 = @item.child_items + if @initems2.count > 0 + @outitems2 = Item.find(:all, :conditions => ['id not in (?) AND id != ?', @initems2.map(&:id), @item.id]) + else + @outitems2 = Item.find(:all, :conditions => ['id != ?', @item.id]) + end - respond_with(@item) + respond_with(@item, @initems1, @outitems1, @initems2, @outitems2, @ingroups, @outgroups, @inpeople, @outpeople) end # PUT /actions/:id @@ -68,12 +96,88 @@ class ItemsController < ApplicationController @item.name = params[:item][:name] @item.desc = params[:item][:desc] @item.link = params[:item][:link] - @item.item_category = ItemCategory.find(params[:category]) + @item.item_category = ItemCategory.find(params[:category][:item_category_id]) @item.user = @user @item.save end + if params[:ingroups] + @ingroups = params[:ingroups] + @ingroups.each do |g| + @connection = Groupitem.where("group_id = ? AND item_id = ?", g, @item.id).first + @connection.delete + end + end + + if params[:outgroups] + @outgroups = params[:outgroups] + @outgroups.each do |g| + belongs = Groupitem.new + belongs.group_id = g + belongs.item_id = @item.id + belongs.save! + end + end + + if params[:inpeople] + @inpeople = params[:inpeople] + @inpeople.each do |g| + @connection = Personitem.where("person_id = ? AND item_id = ?", g, @item.id).first + @connection.delete + end + end + + if params[:outpeople] + @outpeople = params[:outpeople] + @outpeople.each do |g| + belongs = Personitem.new + belongs.person_id = g + belongs.item_id = @item.id + belongs.save! + end + end + + #remove the selected parent items + if params[:initems1] + @initems1 = params[:initems1] + @initems1.each do |g| + @connection = Itemitem.where("parent_item_id = ? AND item_id = ?", g, @item.id).first + @connection.delete + end + end + + #remove the selected parent items + if params[:outitems1] + @outitems1 = params[:outitems1] + @outitems1.each do |g| + belongs = Itemitem.new + belongs.parent_item_id = g + belongs.item_id = @item.id + belongs.save! + end + end + + #remove the selected children items + if params[:initems2] + @initems2 = params[:initems2] + @initems2.each do |g| + @connection = Itemitem.where("parent_item_id = ? AND item_id = ?", @item.id, g).first + @connection.delete + end + end + + #add the selected children items + if params[:outitems2] + @outitems2 = params[:outitems2] + @outitems2.each do |g| + belongs = Itemitem.new + belongs.parent_item_id = @item.id + belongs.item_id = g + belongs.save! + end + end + respond_with(@user, location: restore(default: root_url)) do |format| end end diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index b48d9697..5910cef5 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -42,16 +42,18 @@ class PeopleController < ApplicationController @person.save - @groups = Group.find(params[:ingroups]) - @groups.each do |g| - belongs = Groupperson.new - belongs.group_id = g.id - belongs.person_id = @person.id - belongs.save! - end + if params[:ingroups] + @groups = Group.find(params[:ingroups]) + @groups.each do |g| + belongs = Groupperson.new + belongs.group_id = g.id + belongs.person_id = @person.id + belongs.save! + end + end respond_to do |format| - format.html {render :index} + format.html { respond_with(@user, location: restore(default: person_url(@person))) } format.js { respond_with(@person) } end @@ -60,18 +62,42 @@ class PeopleController < ApplicationController # GET /people/:id/edit def edit @person = Person.find_by_id(params[:id]) - - respond_with(@person) + + @ingroups = @person.groups + if @ingroups.count > 0 + @outgroups = Group.find(:all, :conditions => ['id not in (?)', @ingroups.map(&:id)]) + else + @outgroups = Group.all + end + + respond_with(@person, @ingroups, @outgroups) end # PUT /people/:id def update @user = current_user @person = Person.find_by_id(params[:id]) - @person.attributes = params[:person] if @person - + @person.attributes = params[:person] if @person @person.save if @person - + + if params[:ingroups] + @ingroups = params[:ingroups] + @ingroups.each do |g| + @connection = Groupperson.where("group_id = ? AND person_id = ?", g, @person.id).first + @connection.delete + end + end + + if params[:outgroups] + @outgroups = params[:outgroups] + @outgroups.each do |g| + belongs = Groupperson.new + belongs.group_id = g + belongs.person_id = @person.id + belongs.save! + end + end + respond_with(@user, location: restore(default: root_url)) do |format| end end diff --git a/app/controllers/personitems_controller.rb b/app/controllers/personitems_controller.rb new file mode 100644 index 00000000..37b811b2 --- /dev/null +++ b/app/controllers/personitems_controller.rb @@ -0,0 +1,2 @@ +class PersonitemsController < ApplicationController +end diff --git a/app/helpers/groupgroups_helper.rb b/app/helpers/groupgroups_helper.rb new file mode 100644 index 00000000..88e3e7d0 --- /dev/null +++ b/app/helpers/groupgroups_helper.rb @@ -0,0 +1,2 @@ +module GroupgroupsHelper +end diff --git a/app/helpers/groupitems_helper.rb b/app/helpers/groupitems_helper.rb new file mode 100644 index 00000000..498b3ca8 --- /dev/null +++ b/app/helpers/groupitems_helper.rb @@ -0,0 +1,2 @@ +module GroupitemsHelper +end diff --git a/app/helpers/grouppeople_helper.rb b/app/helpers/grouppeople_helper.rb new file mode 100644 index 00000000..7b023bbe --- /dev/null +++ b/app/helpers/grouppeople_helper.rb @@ -0,0 +1,2 @@ +module GrouppeopleHelper +end diff --git a/app/helpers/itemitems_helper.rb b/app/helpers/itemitems_helper.rb new file mode 100644 index 00000000..1475bf83 --- /dev/null +++ b/app/helpers/itemitems_helper.rb @@ -0,0 +1,2 @@ +module ItemitemsHelper +end diff --git a/app/helpers/personitems_helper.rb b/app/helpers/personitems_helper.rb new file mode 100644 index 00000000..ce10b1b3 --- /dev/null +++ b/app/helpers/personitems_helper.rb @@ -0,0 +1,2 @@ +module PersonitemsHelper +end diff --git a/app/models/user.rb b/app/models/user.rb index 46d8c00e..a8df29df 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -8,6 +8,10 @@ has_many :items acts_as_authentic do |configuration| configuration.session_class = Session + configuration.require_password_confirmation = false + + configuration.merge_validates_format_of_email_field_options unless: Proc.new { |user| user.email.blank? and user.authed? } + configuration.merge_validates_length_of_email_field_options unless: Proc.new { |user| user.email.blank? and user.authed? } end validates :password, :presence => true, diff --git a/app/views/groups/edit.html.erb b/app/views/groups/edit.html.erb index 97b71e31..d6333a2b 100644 --- a/app/views/groups/edit.html.erb +++ b/app/views/groups/edit.html.erb @@ -12,5 +12,37 @@ <%= form.text_field :province, class: "province" %> <%= form.text_field :country, class: "country" %> + <% if @ingroups1.count > 0 %> + + <%= select_tag "ingroups1", options_from_collection_for_select(@ingroups1, "id", "name"), { :multiple => true } %> + <% else %> +
+ <%= select_tag "ingroups1", options_from_collection_for_select(@ingroups1, "id", "name"), { :multiple => true } %> +
+ <% end %> + <% if @outgroups1.count > 0 %> + + <%= select_tag "outgroups1", options_from_collection_for_select(@outgroups1, "id", "name"), { :multiple => true } %> + <% else %> +
+ <%= select_tag "outgroups1", options_from_collection_for_select(@outgroups1, "id", "name"), { :multiple => true } %> +
+ <% end %> + <% if @ingroups2.count > 0 %> + + <%= select_tag "ingroups2", options_from_collection_for_select(@ingroups2, "id", "name"), { :multiple => true } %> + <% else %> +
+ <%= select_tag "ingroups2", options_from_collection_for_select(@ingroups2, "id", "name"), { :multiple => true } %> +
+ <% end %> + <% if @outgroups2.count > 0 %> + + <%= select_tag "outgroups2", options_from_collection_for_select(@outgroups2, "id", "name"), { :multiple => true } %> + <% else %> +
+ <%= select_tag "outgroups2", options_from_collection_for_select(@outgroups2, "id", "name"), { :multiple => true } %> +
+ <% end %> <%= form.submit "Update", class: "update" %> <% end %> \ No newline at end of file diff --git a/app/views/items/edit.html.erb b/app/views/items/edit.html.erb index 64039cd9..b3a7ef8c 100644 --- a/app/views/items/edit.html.erb +++ b/app/views/items/edit.html.erb @@ -1,12 +1,79 @@ <%= form_for @item, url: item_url do |form| %>

Edit Item

- <%= select_tag "category", options_from_collection_for_select(ItemCategory.all, "id", "name") %> + <%= select "category", "item_category_id", ItemCategory.all.collect {|p| [ p.name, p.id ] }, { :selected => @item.item_category.id } %> <%= form.text_field :name %> <%= form.text_area :desc, class: "description", :rows => 5 %> <%= form.text_field :link, class: "link" %> + + <% if @ingroups.count > 0 %> + + <%= select_tag "ingroups", options_from_collection_for_select(@ingroups, "id", "name"), { :multiple => true } %> + <% else %> +
+ <%= select_tag "ingroups", options_from_collection_for_select(@ingroups, "id", "name"), { :multiple => true } %> +
+ <% end %> + <% if @outgroups.count > 0 %> + + <%= select_tag "outgroups", options_from_collection_for_select(@outgroups, "id", "name"), { :multiple => true } %> + <% else %> +
+ <%= select_tag "outgroups", options_from_collection_for_select(@outgroups, "id", "name"), { :multiple => true } %> +
+ <% end %> + <% if @inpeople.count > 0 %> + + <%= select_tag "inpeople", options_from_collection_for_select(@inpeople, "id", "name"), { :multiple => true } %> + <% else %> +
+ <%= select_tag "inpeople", options_from_collection_for_select(@inpeople, "id", "name"), { :multiple => true } %> +
+ <% end %> + <% if @outpeople.count > 0 %> + + <%= select_tag "outpeople", options_from_collection_for_select(@outpeople, "id", "name"), { :multiple => true } %> + <% else %> +
+ <%= select_tag "outpeople", options_from_collection_for_select(@outpeople, "id", "name"), { :multiple => true } %> +
+ <% end %> + + <% if @initems1.count > 0 %> + + <%= select_tag "initems1", options_from_collection_for_select(@initems1, "id", "name"), { :multiple => true } %> + <% else %> +
+ <%= select_tag "initems1", options_from_collection_for_select(@initems1, "id", "name"), { :multiple => true } %> +
+ <% end %> + <% if @outitems1.count > 0 %> + + <%= select_tag "outitems1", options_from_collection_for_select(@outitems1, "id", "name"), { :multiple => true } %> + <% else %> +
+ <%= select_tag "outitems1", options_from_collection_for_select(@outitems1, "id", "name"), { :multiple => true } %> +
+ <% end %> + <% if @initems2.count > 0 %> + + <%= select_tag "initems2", options_from_collection_for_select(@initems2, "id", "name"), { :multiple => true } %> + <% else %> +
+ <%= select_tag "initems2", options_from_collection_for_select(@initems2, "id", "name"), { :multiple => true } %> +
+ <% end %> + <% if @outitems2.count > 0 %> + + <%= select_tag "outitems2", options_from_collection_for_select(@outitems2, "id", "name"), { :multiple => true } %> + <% else %> +
+ <%= select_tag "outitems2", options_from_collection_for_select(@outitems2, "id", "name"), { :multiple => true } %> +
+ <% end %> + <%= form.submit "Update", class: "update" %> <% end %> \ No newline at end of file diff --git a/app/views/people/edit.html.erb b/app/views/people/edit.html.erb index 38b1ac3d..2e8eff0f 100644 --- a/app/views/people/edit.html.erb +++ b/app/views/people/edit.html.erb @@ -12,5 +12,21 @@ <%= form.text_field :province, class: "province" %> <%= form.text_field :country, class: "country" %> + <% if @ingroups.count > 0 %> + + <%= select_tag "ingroups", options_from_collection_for_select(@ingroups, "id", "name"), { :multiple => true } %> + <% else %> +
+ <%= select_tag "ingroups", options_from_collection_for_select(@ingroups, "id", "name"), { :multiple => true } %> +
+ <% end %> + <% if @outgroups.count > 0 %> + + <%= select_tag "outgroups", options_from_collection_for_select(@outgroups, "id", "name"), { :multiple => true } %> + <% else %> +
+ <%= select_tag "outgroups", options_from_collection_for_select(@outgroups, "id", "name"), { :multiple => true } %> +
+ <% end %> <%= form.submit "Update", class: "update" %> <% end %> \ No newline at end of file diff --git a/app/views/people/new.html.erb b/app/views/people/new.html.erb index 7e99eb34..27ffeb53 100644 --- a/app/views/people/new.html.erb +++ b/app/views/people/new.html.erb @@ -6,7 +6,7 @@ <%= form.text_area :desc, label: "Description", class: "description", :rows => 5 %> <%= form.text_field :link, label: "Link", class: "link" %> - + <%= select_tag "ingroups", options_from_collection_for_select(Group.all, "id", "name"), { :multiple => true } %> <%= form.text_field :city, class: "city" %> diff --git a/test/functional/groupgroups_controller_test.rb b/test/functional/groupgroups_controller_test.rb new file mode 100644 index 00000000..fac60043 --- /dev/null +++ b/test/functional/groupgroups_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class GroupgroupsControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/functional/groupitems_controller_test.rb b/test/functional/groupitems_controller_test.rb new file mode 100644 index 00000000..1191d976 --- /dev/null +++ b/test/functional/groupitems_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class GroupitemsControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/functional/grouppeople_controller_test.rb b/test/functional/grouppeople_controller_test.rb new file mode 100644 index 00000000..7b1806be --- /dev/null +++ b/test/functional/grouppeople_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class GrouppeopleControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/functional/itemitems_controller_test.rb b/test/functional/itemitems_controller_test.rb new file mode 100644 index 00000000..07c47d1d --- /dev/null +++ b/test/functional/itemitems_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class ItemitemsControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/functional/personitems_controller_test.rb b/test/functional/personitems_controller_test.rb new file mode 100644 index 00000000..e1613b84 --- /dev/null +++ b/test/functional/personitems_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class PersonitemsControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/unit/helpers/groupgroups_helper_test.rb b/test/unit/helpers/groupgroups_helper_test.rb new file mode 100644 index 00000000..15f73192 --- /dev/null +++ b/test/unit/helpers/groupgroups_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class GroupgroupsHelperTest < ActionView::TestCase +end diff --git a/test/unit/helpers/groupitems_helper_test.rb b/test/unit/helpers/groupitems_helper_test.rb new file mode 100644 index 00000000..ae2e4ab4 --- /dev/null +++ b/test/unit/helpers/groupitems_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class GroupitemsHelperTest < ActionView::TestCase +end diff --git a/test/unit/helpers/grouppeople_helper_test.rb b/test/unit/helpers/grouppeople_helper_test.rb new file mode 100644 index 00000000..8dafd025 --- /dev/null +++ b/test/unit/helpers/grouppeople_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class GrouppeopleHelperTest < ActionView::TestCase +end diff --git a/test/unit/helpers/itemitems_helper_test.rb b/test/unit/helpers/itemitems_helper_test.rb new file mode 100644 index 00000000..5bfd38a8 --- /dev/null +++ b/test/unit/helpers/itemitems_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class ItemitemsHelperTest < ActionView::TestCase +end diff --git a/test/unit/helpers/personitems_helper_test.rb b/test/unit/helpers/personitems_helper_test.rb new file mode 100644 index 00000000..092e010e --- /dev/null +++ b/test/unit/helpers/personitems_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class PersonitemsHelperTest < ActionView::TestCase +end