From 9c5c71f2d7413c280c046f45d9b0565981c7bbab Mon Sep 17 00:00:00 2001 From: Nick Black Date: Fri, 4 May 2007 19:42:17 +0000 Subject: [PATCH] added user stuff inc beginning of messages --- app/controllers/message_controller.rb | 2 ++ app/models/message.rb | 2 ++ test/fixtures/messages.yml | 5 +++++ test/functional/geocoder_controller_test.rb | 18 ++++++++++++++++++ test/functional/message_controller_test.rb | 18 ++++++++++++++++++ test/unit/message_test.rb | 10 ++++++++++ 6 files changed, 55 insertions(+) create mode 100644 app/controllers/message_controller.rb create mode 100644 app/models/message.rb create mode 100644 test/fixtures/messages.yml create mode 100644 test/functional/geocoder_controller_test.rb create mode 100644 test/functional/message_controller_test.rb create mode 100644 test/unit/message_test.rb diff --git a/app/controllers/message_controller.rb b/app/controllers/message_controller.rb new file mode 100644 index 000000000..629d3301f --- /dev/null +++ b/app/controllers/message_controller.rb @@ -0,0 +1,2 @@ +class MessageController < ApplicationController +end diff --git a/app/models/message.rb b/app/models/message.rb new file mode 100644 index 000000000..590e3e357 --- /dev/null +++ b/app/models/message.rb @@ -0,0 +1,2 @@ +class Message < ActiveRecord::Base +end diff --git a/test/fixtures/messages.yml b/test/fixtures/messages.yml new file mode 100644 index 000000000..b49c4eb4e --- /dev/null +++ b/test/fixtures/messages.yml @@ -0,0 +1,5 @@ +# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html +one: + id: 1 +two: + id: 2 diff --git a/test/functional/geocoder_controller_test.rb b/test/functional/geocoder_controller_test.rb new file mode 100644 index 000000000..3faadc740 --- /dev/null +++ b/test/functional/geocoder_controller_test.rb @@ -0,0 +1,18 @@ +require File.dirname(__FILE__) + '/../test_helper' +require 'geocoder_controller' + +# Re-raise errors caught by the controller. +class GeocoderController; def rescue_action(e) raise e end; end + +class GeocoderControllerTest < Test::Unit::TestCase + def setup + @controller = GeocoderController.new + @request = ActionController::TestRequest.new + @response = ActionController::TestResponse.new + end + + # Replace this with your real tests. + def test_truth + assert true + end +end diff --git a/test/functional/message_controller_test.rb b/test/functional/message_controller_test.rb new file mode 100644 index 000000000..54c8a18d1 --- /dev/null +++ b/test/functional/message_controller_test.rb @@ -0,0 +1,18 @@ +require File.dirname(__FILE__) + '/../test_helper' +require 'message_controller' + +# Re-raise errors caught by the controller. +class MessageController; def rescue_action(e) raise e end; end + +class MessageControllerTest < Test::Unit::TestCase + def setup + @controller = MessageController.new + @request = ActionController::TestRequest.new + @response = ActionController::TestResponse.new + end + + # Replace this with your real tests. + def test_truth + assert true + end +end diff --git a/test/unit/message_test.rb b/test/unit/message_test.rb new file mode 100644 index 000000000..8804fe003 --- /dev/null +++ b/test/unit/message_test.rb @@ -0,0 +1,10 @@ +require File.dirname(__FILE__) + '/../test_helper' + +class MessageTest < Test::Unit::TestCase + fixtures :messages + + # Replace this with your real tests. + def test_truth + assert true + end +end -- 2.39.5