From 4761dc8bf6faa1d90e3d2024f5710cf67a1bae5e Mon Sep 17 00:00:00 2001 From: echarp Date: Sat, 28 Dec 2013 15:45:21 +0100 Subject: [PATCH] =?UTF-8?q?Administration=20de=20cit=C3=A9s,=20r=C3=A9gion?= =?UTF-8?q?s,=20lugs=20et=20contributeurs=20en=20place?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/dashboard.rb | 13 ++-- app/admin/lug.rb | 3 + app/assets/javascripts/cities.js.coffee | 3 - app/assets/javascripts/regions.js.coffee | 3 - app/assets/stylesheets/all.css.sass | 6 ++ app/assets/stylesheets/cities.css.sass | 3 - app/assets/stylesheets/regions.css.sass | 3 - app/assets/stylesheets/scaffolds.css.scss | 69 +++++++++++++++++++++ app/controllers/cities_controller.rb | 7 --- app/controllers/regions_controller.rb | 2 - app/helpers/lugs_helper.rb | 2 + app/models/city.rb | 5 ++ app/models/lug.rb | 3 + app/views/cities/_form.html.haml | 31 --------- app/views/cities/edit.html.haml | 7 --- app/views/cities/index.html.haml | 31 --------- app/views/cities/index.json.jbuilder | 4 -- app/views/cities/new.html.haml | 5 -- app/views/cities/show.html.haml | 27 -------- app/views/cities/show.json.jbuilder | 1 - app/views/layouts/application.html.haml | 32 ++++++---- app/views/regions/_form.html.haml | 13 ---- app/views/regions/edit.html.haml | 7 --- app/views/regions/index.html.haml | 19 ------ app/views/regions/index.json.jbuilder | 4 -- app/views/regions/new.html.haml | 5 -- app/views/regions/show.html.haml | 9 --- app/views/regions/show.json.jbuilder | 1 - config/locales/fr.yml | 26 +++++++- config/routes.rb | 1 + test/controllers/cities_controller_test.rb | 49 --------------- test/controllers/regions_controller_test.rb | 49 --------------- test/fixtures/lugs.yml | 15 +++++ test/fixtures/regions.yml | 4 +- test/fixtures/users.yml | 1 - test/helpers/lugs_helper_test.rb | 4 ++ test/models/lug_test.rb | 7 +++ 37 files changed, 167 insertions(+), 307 deletions(-) create mode 100644 app/admin/lug.rb delete mode 100644 app/assets/javascripts/cities.js.coffee delete mode 100644 app/assets/javascripts/regions.js.coffee delete mode 100644 app/assets/stylesheets/cities.css.sass delete mode 100644 app/assets/stylesheets/regions.css.sass create mode 100644 app/assets/stylesheets/scaffolds.css.scss delete mode 100644 app/controllers/cities_controller.rb delete mode 100644 app/controllers/regions_controller.rb create mode 100644 app/helpers/lugs_helper.rb create mode 100644 app/models/lug.rb delete mode 100644 app/views/cities/_form.html.haml delete mode 100644 app/views/cities/edit.html.haml delete mode 100644 app/views/cities/index.html.haml delete mode 100644 app/views/cities/index.json.jbuilder delete mode 100644 app/views/cities/new.html.haml delete mode 100644 app/views/cities/show.html.haml delete mode 100644 app/views/cities/show.json.jbuilder delete mode 100644 app/views/regions/_form.html.haml delete mode 100644 app/views/regions/edit.html.haml delete mode 100644 app/views/regions/index.html.haml delete mode 100644 app/views/regions/index.json.jbuilder delete mode 100644 app/views/regions/new.html.haml delete mode 100644 app/views/regions/show.html.haml delete mode 100644 app/views/regions/show.json.jbuilder delete mode 100644 test/controllers/cities_controller_test.rb delete mode 100644 test/controllers/regions_controller_test.rb create mode 100644 test/fixtures/lugs.yml create mode 100644 test/helpers/lugs_helper_test.rb create mode 100644 test/models/lug_test.rb diff --git a/app/admin/dashboard.rb b/app/admin/dashboard.rb index c7ce6a00..c3634d98 100644 --- a/app/admin/dashboard.rb +++ b/app/admin/dashboard.rb @@ -1,24 +1,23 @@ ActiveAdmin.register_page "Dashboard" do + menu priority: 1, label: proc{ I18n.t("active_admin.dashboard") } - menu :priority => 1, :label => proc{ I18n.t("active_admin.dashboard") } - - content :title => proc{ I18n.t("active_admin.dashboard") } do + content title: proc{ I18n.t("active_admin.dashboard") } do columns do column do panel "Contributeurs" do ul do User.all.map do |user| - li link_to(user, user) + li link_to("#{user.firstname} #{user.lastname} (#{user.login})", user) end end end end column do - panel "Contributeurs" do + panel "Commentaires" do ul do - User.all.map do |user| - li link_to(user.login, user) + ActiveAdmin::Comment.all.map do |comment| + li link_to(comment.author.email, admin_admin_user_path(comment.author)) end end end diff --git a/app/admin/lug.rb b/app/admin/lug.rb new file mode 100644 index 00000000..a79855ca --- /dev/null +++ b/app/admin/lug.rb @@ -0,0 +1,3 @@ +ActiveAdmin.register Lug do + permit_params :name, :department, :url, :city +end diff --git a/app/assets/javascripts/cities.js.coffee b/app/assets/javascripts/cities.js.coffee deleted file mode 100644 index 24f83d18..00000000 --- a/app/assets/javascripts/cities.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# 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://coffeescript.org/ diff --git a/app/assets/javascripts/regions.js.coffee b/app/assets/javascripts/regions.js.coffee deleted file mode 100644 index 24f83d18..00000000 --- a/app/assets/javascripts/regions.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# 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://coffeescript.org/ diff --git a/app/assets/stylesheets/all.css.sass b/app/assets/stylesheets/all.css.sass index f88c12b9..e915bbfc 100644 --- a/app/assets/stylesheets/all.css.sass +++ b/app/assets/stylesheets/all.css.sass @@ -54,3 +54,9 @@ header.top main h1 margin-top: 1em + +footer.bottom nav + font-size: smaller + a + a:before + color: black + content: '- ' diff --git a/app/assets/stylesheets/cities.css.sass b/app/assets/stylesheets/cities.css.sass deleted file mode 100644 index e2622520..00000000 --- a/app/assets/stylesheets/cities.css.sass +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the cities 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/regions.css.sass b/app/assets/stylesheets/regions.css.sass deleted file mode 100644 index 9dd55106..00000000 --- a/app/assets/stylesheets/regions.css.sass +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the regions 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/scaffolds.css.scss b/app/assets/stylesheets/scaffolds.css.scss new file mode 100644 index 00000000..6ec6a8ff --- /dev/null +++ b/app/assets/stylesheets/scaffolds.css.scss @@ -0,0 +1,69 @@ +body { + background-color: #fff; + color: #333; + font-family: verdana, arial, helvetica, sans-serif; + font-size: 13px; + line-height: 18px; +} + +p, ol, ul, td { + font-family: verdana, arial, helvetica, sans-serif; + font-size: 13px; + line-height: 18px; +} + +pre { + background-color: #eee; + padding: 10px; + font-size: 11px; +} + +a { + color: #000; + &:visited { + color: #666; + } + &:hover { + color: #fff; + background-color: #000; + } +} + +div { + &.field, &.actions { + margin-bottom: 10px; + } +} + +#notice { + color: green; +} + +.field_with_errors { + padding: 2px; + background-color: red; + display: table; +} + +#error_explanation { + width: 450px; + border: 2px solid red; + padding: 7px; + padding-bottom: 0; + margin-bottom: 20px; + background-color: #f0f0f0; + h2 { + text-align: left; + font-weight: bold; + padding: 5px 5px 5px 15px; + font-size: 12px; + margin: -7px; + margin-bottom: 0px; + background-color: #c00; + color: #fff; + } + ul li { + font-size: 12px; + list-style: square; + } +} diff --git a/app/controllers/cities_controller.rb b/app/controllers/cities_controller.rb deleted file mode 100644 index 0d11954b..00000000 --- a/app/controllers/cities_controller.rb +++ /dev/null @@ -1,7 +0,0 @@ -class CitiesController < InheritedResources::Base - protected - # Never trust parameters from the scary internet, only allow the white list through. - def permitted_params - params.permit city: [:name, :majname, :postalcode, :inseecode, :regioncode, :latitude, :longitude] - end -end diff --git a/app/controllers/regions_controller.rb b/app/controllers/regions_controller.rb deleted file mode 100644 index 4837c4f5..00000000 --- a/app/controllers/regions_controller.rb +++ /dev/null @@ -1,2 +0,0 @@ -class RegionsController < InheritedResources::Base -end diff --git a/app/helpers/lugs_helper.rb b/app/helpers/lugs_helper.rb new file mode 100644 index 00000000..9687e957 --- /dev/null +++ b/app/helpers/lugs_helper.rb @@ -0,0 +1,2 @@ +module LugsHelper +end diff --git a/app/models/city.rb b/app/models/city.rb index ceba1d0c..b188ac23 100644 --- a/app/models/city.rb +++ b/app/models/city.rb @@ -1,2 +1,7 @@ class City < ActiveRecord::Base end + +# +# def permitted_params +# params.permit city: [:name, :majname, :postalcode, :inseecode, :regioncode, :latitude, :longitude] +# end diff --git a/app/models/lug.rb b/app/models/lug.rb new file mode 100644 index 00000000..7f97906c --- /dev/null +++ b/app/models/lug.rb @@ -0,0 +1,3 @@ +class Lug < ActiveRecord::Base + belongs_to :region, foreign_key: 'region' +end diff --git a/app/views/cities/_form.html.haml b/app/views/cities/_form.html.haml deleted file mode 100644 index 0f0f2bdf..00000000 --- a/app/views/cities/_form.html.haml +++ /dev/null @@ -1,31 +0,0 @@ -= form_for @city do |f| - - if @city.errors.any? - #error_explanation - %h2= "#{pluralize(@city.errors.count, "error")} prohibited this city from being saved:" - %ul - - @city.errors.full_messages.each do |msg| - %li= msg - - .field - = f.label :name - = f.text_field :name - .field - = f.label :majname - = f.text_field :majname - .field - = f.label :postalcode - = f.number_field :postalcode - .field - = f.label :inseecode - = f.number_field :inseecode - .field - = f.label :regioncode - = f.number_field :regioncode - .field - = f.label :latitude - = f.text_field :latitude - .field - = f.label :longitude - = f.text_field :longitude - .actions - = f.submit 'Save' diff --git a/app/views/cities/edit.html.haml b/app/views/cities/edit.html.haml deleted file mode 100644 index 6d24cb39..00000000 --- a/app/views/cities/edit.html.haml +++ /dev/null @@ -1,7 +0,0 @@ -%h1 Editing city - -= render 'form' - -= link_to 'Show', @city -\| -= link_to 'Back', cities_path diff --git a/app/views/cities/index.html.haml b/app/views/cities/index.html.haml deleted file mode 100644 index 0186cf8d..00000000 --- a/app/views/cities/index.html.haml +++ /dev/null @@ -1,31 +0,0 @@ -%h1 Listing cities - -%table - %tr - %th Name - %th Majname - %th Postalcode - %th Inseecode - %th Regioncode - %th Latitude - %th Longitude - %th - %th - %th - - - @cities.each do |city| - %tr - %td= city.name - %td= city.majname - %td= city.postalcode - %td= city.inseecode - %td= city.regioncode - %td= city.latitude - %td= city.longitude - %td= link_to 'Show', city - %td= link_to 'Edit', edit_city_path(city) - %td= link_to 'Destroy', city, :method => :delete, :data => { :confirm => 'Are you sure?' } - -%br - -= link_to 'New City', new_city_path diff --git a/app/views/cities/index.json.jbuilder b/app/views/cities/index.json.jbuilder deleted file mode 100644 index 7788f181..00000000 --- a/app/views/cities/index.json.jbuilder +++ /dev/null @@ -1,4 +0,0 @@ -json.array!(@cities) do |city| - json.extract! city, :name, :majname, :postalcode, :inseecode, :regioncode, :latitude, :longitude - json.url city_url(city, format: :json) -end diff --git a/app/views/cities/new.html.haml b/app/views/cities/new.html.haml deleted file mode 100644 index 43666166..00000000 --- a/app/views/cities/new.html.haml +++ /dev/null @@ -1,5 +0,0 @@ -%h1 New city - -= render 'form' - -= link_to 'Back', cities_path diff --git a/app/views/cities/show.html.haml b/app/views/cities/show.html.haml deleted file mode 100644 index 7ad351b2..00000000 --- a/app/views/cities/show.html.haml +++ /dev/null @@ -1,27 +0,0 @@ -%p#notice= notice - -%p - %b Name: - = @city.name -%p - %b Majname: - = @city.majname -%p - %b Postalcode: - = @city.postalcode -%p - %b Inseecode: - = @city.inseecode -%p - %b Regioncode: - = @city.regioncode -%p - %b Latitude: - = @city.latitude -%p - %b Longitude: - = @city.longitude - -= link_to t('Edit'), edit_city_path(@city) -\| -= link_to t('Back'), cities_path diff --git a/app/views/cities/show.json.jbuilder b/app/views/cities/show.json.jbuilder deleted file mode 100644 index 0e2fcaf8..00000000 --- a/app/views/cities/show.json.jbuilder +++ /dev/null @@ -1 +0,0 @@ -json.extract! @city, :name, :majname, :postalcode, :inseecode, :regioncode, :latitude, :longitude, :created_at, :updated_at diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index eba1331c..f26fe334 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -2,18 +2,18 @@ /[if IE] %html(lang="#{I18n.locale}") %head - %title L'Agenda du Libre + %title=t '.title' %meta(http-equiv='Content-Type' content='text/html; charset=utf-8') - %meta(name='description' content='Parlement, a mix between direct and representative democracy, in the shape of a website. A mailing list, forum, chat. Democratic mailing list and forum') + %meta(name='description' content='Agende du Libre. Free Software Calendar') %meta(name='author' content='Emmanuel Charpentier') %meta(name='robots' content='index, follow') - %meta(name='keywords' content='collaborative writing, democracy, direct democracy, representative democracy, forum, mailing list, chat, Ruby on Rails, PostgreSQL') + %meta(name='keywords' content='calendar, agenda, date') - %meta(name='dcterms.title' content='Parlement' lang='en') - %meta(name='dcterms.title' content='Parlement' lang='fr') - %meta(name='dcterms.subject' content='Parlement, democratic mailing list and forum') + %meta(name='dcterms.title' content='Free Calendar' lang='en') + %meta(name='dcterms.title' content='Agenda du Libre' lang='fr') + %meta(name='dcterms.subject' content='agenda') -#%link(rel='shortcut icon' href='/assets/favicon.ico') %link(rel='icon' type='image/png' href='/assets/world.png') @@ -33,16 +33,22 @@ = render 'layouts/flash', flash: flash if flash.present? %header.top - %h1= link_to "L'Agenda du Libre", root_url - %h2 L'agenda des évènements du Logiciel Libre en France + %h1= link_to t('.title'), root_url + %h2=t '.subtitle' %main = yield %footer.bottom %nav - = link_to User.model_name.human.capitalize.pluralize, users_url - = link_to 'Forge', 'http://rubyforge.org/projects/parlement' - = link_to 'AGPL', 'http://www.gnu.org/licenses/agpl.html' - = link_to 'fr', '/fr', class: 'fr' - %span.version=t :version, version: 1.99 + = link_to t('.propose'), users_url + = link_to t('.rss'), users_url + = link_to t('.ical'), users_url + = link_to t('.map'), users_url + = link_to t('.tags'), users_url + = link_to t('.infos'), users_url + = link_to t('.stats'), users_url + = link_to t('.contact'), users_url + = link_to t('.moderation'), users_url + = link_to t('.forge'), 'http://rubyforge.org/projects/parlement' + = link_to t('.agpl'), 'http://www.gnu.org/licenses/agpl.html' diff --git a/app/views/regions/_form.html.haml b/app/views/regions/_form.html.haml deleted file mode 100644 index 660255cd..00000000 --- a/app/views/regions/_form.html.haml +++ /dev/null @@ -1,13 +0,0 @@ -= form_for @region do |f| - - if @region.errors.any? - #error_explanation - %h2= "#{pluralize(@region.errors.count, "error")} prohibited this region from being saved:" - %ul - - @region.errors.full_messages.each do |msg| - %li= msg - - .field - = f.label :name - = f.text_field :name - .actions - = f.submit 'Save' diff --git a/app/views/regions/edit.html.haml b/app/views/regions/edit.html.haml deleted file mode 100644 index 9e038958..00000000 --- a/app/views/regions/edit.html.haml +++ /dev/null @@ -1,7 +0,0 @@ -%h1 Editing region - -= render 'form' - -= link_to 'Show', @region -\| -= link_to 'Back', regions_path diff --git a/app/views/regions/index.html.haml b/app/views/regions/index.html.haml deleted file mode 100644 index 3be6fcd7..00000000 --- a/app/views/regions/index.html.haml +++ /dev/null @@ -1,19 +0,0 @@ -%h1 Listing regions - -%table - %tr - %th Name - %th - %th - %th - - - @regions.each do |region| - %tr - %td= region.name - %td= link_to 'Show', region - %td= link_to 'Edit', edit_region_path(region) - %td= link_to 'Destroy', region, :method => :delete, :data => { :confirm => 'Are you sure?' } - -%br - -= link_to 'New Region', new_region_path diff --git a/app/views/regions/index.json.jbuilder b/app/views/regions/index.json.jbuilder deleted file mode 100644 index 7ca68886..00000000 --- a/app/views/regions/index.json.jbuilder +++ /dev/null @@ -1,4 +0,0 @@ -json.array!(@regions) do |region| - json.extract! region, :name - json.url region_url(region, format: :json) -end diff --git a/app/views/regions/new.html.haml b/app/views/regions/new.html.haml deleted file mode 100644 index 42ce0d5e..00000000 --- a/app/views/regions/new.html.haml +++ /dev/null @@ -1,5 +0,0 @@ -%h1 New region - -= render 'form' - -= link_to 'Back', regions_path diff --git a/app/views/regions/show.html.haml b/app/views/regions/show.html.haml deleted file mode 100644 index 2d9cc32c..00000000 --- a/app/views/regions/show.html.haml +++ /dev/null @@ -1,9 +0,0 @@ -%p#notice= notice - -%p - %b Name: - = @region.name - -= link_to 'Edit', edit_region_path(@region) -\| -= link_to 'Back', regions_path diff --git a/app/views/regions/show.json.jbuilder b/app/views/regions/show.json.jbuilder deleted file mode 100644 index a1469641..00000000 --- a/app/views/regions/show.json.jbuilder +++ /dev/null @@ -1 +0,0 @@ -json.extract! @region, :name, :created_at, :updated_at diff --git a/config/locales/fr.yml b/config/locales/fr.yml index ac55d05b..bfb2f055 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -4,6 +4,9 @@ fr: destroy: Supprimer attributes: + id: ID + name: Nom + email: Email created_at: Créé le updated_at: Modifié le created: Créé il y a %{date} @@ -16,13 +19,23 @@ fr: user: Contributeur city: Cité region: Région + lug: Gull attributes: user: login: Identifiant - email: Email password: Mot de passe lastname: Nom firstname: Prénom + city: + majname: Nom majuscules + postalcode: Code postal + inseecode: Code INSEE + regioncode: Code région + lug: + region: Région + department: Département + url: Adresse web + city: Cité helpers: submit: @@ -32,3 +45,14 @@ fr: layouts: application: login: Authentication + title: L'Agenda du Libre + subtitle: L'agenda des évènements du Logiciel Libre en France + propose: Proposer un évènement + rss: Flux RSS + ical: Calendriers iCal + map: Carte + tags: Tags + infos: Informations + stats: Statistiques + contact: Contact + moderation: Modération diff --git a/config/routes.rb b/config/routes.rb index 7ecf82ef..7a335324 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,5 @@ AgendaDuLibreRails::Application.routes.draw do + resources :lugs resources :cities resources :regions resources :users diff --git a/test/controllers/cities_controller_test.rb b/test/controllers/cities_controller_test.rb deleted file mode 100644 index a5c7eff5..00000000 --- a/test/controllers/cities_controller_test.rb +++ /dev/null @@ -1,49 +0,0 @@ -require 'test_helper' - -class CitiesControllerTest < ActionController::TestCase - setup do - @city = cities(:one) - end - - test "should get index" do - get :index - assert_response :success - assert_not_nil assigns(:cities) - end - - test "should get new" do - get :new - assert_response :success - end - - test "should create city" do - assert_difference('City.count') do - post :create, city: { inseecode: @city.inseecode, latitude: @city.latitude, longitude: @city.longitude, majname: @city.majname, name: @city.name, postalcode: @city.postalcode, regioncode: @city.regioncode } - end - - assert_redirected_to city_path(assigns(:city)) - end - - test "should show city" do - get :show, id: @city - assert_response :success - end - - test "should get edit" do - get :edit, id: @city - assert_response :success - end - - test "should update city" do - patch :update, id: @city, city: { inseecode: @city.inseecode, latitude: @city.latitude, longitude: @city.longitude, majname: @city.majname, name: @city.name, postalcode: @city.postalcode, regioncode: @city.regioncode } - assert_redirected_to city_path(assigns(:city)) - end - - test "should destroy city" do - assert_difference('City.count', -1) do - delete :destroy, id: @city - end - - assert_redirected_to cities_path - end -end diff --git a/test/controllers/regions_controller_test.rb b/test/controllers/regions_controller_test.rb deleted file mode 100644 index 18ca106a..00000000 --- a/test/controllers/regions_controller_test.rb +++ /dev/null @@ -1,49 +0,0 @@ -require 'test_helper' - -class RegionsControllerTest < ActionController::TestCase - setup do - @region = regions(:one) - end - - test "should get index" do - get :index - assert_response :success - assert_not_nil assigns(:regions) - end - - test "should get new" do - get :new - assert_response :success - end - - test "should create region" do - assert_difference('Region.count') do - post :create, region: { name: @region.name } - end - - assert_redirected_to region_path(assigns(:region)) - end - - test "should show region" do - get :show, id: @region - assert_response :success - end - - test "should get edit" do - get :edit, id: @region - assert_response :success - end - - test "should update region" do - patch :update, id: @region, region: { name: @region.name } - assert_redirected_to region_path(assigns(:region)) - end - - test "should destroy region" do - assert_difference('Region.count', -1) do - delete :destroy, id: @region - end - - assert_redirected_to regions_path - end -end diff --git a/test/fixtures/lugs.yml b/test/fixtures/lugs.yml new file mode 100644 index 00000000..416a2172 --- /dev/null +++ b/test/fixtures/lugs.yml @@ -0,0 +1,15 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + region: region_one + department: 1 + name: MyString + url: MyString + city: MyString + +two: + region: region_one + department: 1 + name: MyString + url: MyString + city: MyString diff --git a/test/fixtures/regions.yml b/test/fixtures/regions.yml index 56066c68..ca0fb8b0 100644 --- a/test/fixtures/regions.yml +++ b/test/fixtures/regions.yml @@ -1,7 +1,7 @@ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html -one: +region_one: name: MyString -two: +region_two: name: MyString diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml index b7503092..0bf1b515 100644 --- a/test/fixtures/users.yml +++ b/test/fixtures/users.yml @@ -6,6 +6,5 @@ one: email: one@example.com - two: email: two@example.com diff --git a/test/helpers/lugs_helper_test.rb b/test/helpers/lugs_helper_test.rb new file mode 100644 index 00000000..6b22e97b --- /dev/null +++ b/test/helpers/lugs_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class LugsHelperTest < ActionView::TestCase +end diff --git a/test/models/lug_test.rb b/test/models/lug_test.rb new file mode 100644 index 00000000..b6c69d10 --- /dev/null +++ b/test/models/lug_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class LugTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end