From 9046917ed187c5b0f182bdb2063c8c5a91781c03 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Wed, 31 Aug 2011 08:19:44 -0400 Subject: [PATCH] adding controller for futzing with solr --- .gitignore | 1 + rails/hamster/app/controllers/solr_controller.rb | 2 ++ rails/hamster/app/helpers/solr_helper.rb | 2 ++ rails/hamster/db/schema.rb | 14 ++++++++++++++ .../test/functional/solr_controller_test.rb | 8 ++++++++ .../hamster/test/unit/helpers/solr_helper_test.rb | 4 ++++ 6 files changed, 31 insertions(+) create mode 100644 rails/hamster/app/controllers/solr_controller.rb create mode 100644 rails/hamster/app/helpers/solr_helper.rb create mode 100644 rails/hamster/db/schema.rb create mode 100644 rails/hamster/test/functional/solr_controller_test.rb create mode 100644 rails/hamster/test/unit/helpers/solr_helper_test.rb diff --git a/.gitignore b/.gitignore index 1be9e89..bf6068b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.log koans/.path_progress +*.sqlite3 diff --git a/rails/hamster/app/controllers/solr_controller.rb b/rails/hamster/app/controllers/solr_controller.rb new file mode 100644 index 0000000..645f699 --- /dev/null +++ b/rails/hamster/app/controllers/solr_controller.rb @@ -0,0 +1,2 @@ +class SolrController < ApplicationController +end diff --git a/rails/hamster/app/helpers/solr_helper.rb b/rails/hamster/app/helpers/solr_helper.rb new file mode 100644 index 0000000..18437f1 --- /dev/null +++ b/rails/hamster/app/helpers/solr_helper.rb @@ -0,0 +1,2 @@ +module SolrHelper +end diff --git a/rails/hamster/db/schema.rb b/rails/hamster/db/schema.rb new file mode 100644 index 0000000..b81ae5a --- /dev/null +++ b/rails/hamster/db/schema.rb @@ -0,0 +1,14 @@ +# This file is auto-generated from the current state of the database. Instead of editing this file, +# please use the migrations feature of Active Record to incrementally modify your database, and +# then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your database schema. If you need +# to create the application database on another system, you should be using db:schema:load, not running +# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended to check this file into your version control system. + +ActiveRecord::Schema.define(:version => 0) do + +end diff --git a/rails/hamster/test/functional/solr_controller_test.rb b/rails/hamster/test/functional/solr_controller_test.rb new file mode 100644 index 0000000..81c9dca --- /dev/null +++ b/rails/hamster/test/functional/solr_controller_test.rb @@ -0,0 +1,8 @@ +require 'test_helper' + +class SolrControllerTest < ActionController::TestCase + # Replace this with your real tests. + test "the truth" do + assert true + end +end diff --git a/rails/hamster/test/unit/helpers/solr_helper_test.rb b/rails/hamster/test/unit/helpers/solr_helper_test.rb new file mode 100644 index 0000000..215ff7d --- /dev/null +++ b/rails/hamster/test/unit/helpers/solr_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class SolrHelperTest < ActionView::TestCase +end