added user stuff inc beginning of messages

This commit is contained in:
Nick Black 2007-05-04 19:42:17 +00:00
parent 1defb3ca1e
commit 9c5c71f2d7
6 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,2 @@
class MessageController < ApplicationController
end

2
app/models/message.rb Normal file
View file

@ -0,0 +1,2 @@
class Message < ActiveRecord::Base
end

5
test/fixtures/messages.yml vendored Normal file
View file

@ -0,0 +1,5 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
one:
id: 1
two:
id: 2

View file

@ -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

View file

@ -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

10
test/unit/message_test.rb Normal file
View file

@ -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