]> git.openstreetmap.org Git - rails.git/commitdiff
added user stuff inc beginning of messages
authorNick Black <nickb@svn.openstreetmap.org>
Fri, 4 May 2007 19:42:17 +0000 (19:42 +0000)
committerNick Black <nickb@svn.openstreetmap.org>
Fri, 4 May 2007 19:42:17 +0000 (19:42 +0000)
app/controllers/message_controller.rb [new file with mode: 0644]
app/models/message.rb [new file with mode: 0644]
test/fixtures/messages.yml [new file with mode: 0644]
test/functional/geocoder_controller_test.rb [new file with mode: 0644]
test/functional/message_controller_test.rb [new file with mode: 0644]
test/unit/message_test.rb [new file with mode: 0644]

diff --git a/app/controllers/message_controller.rb b/app/controllers/message_controller.rb
new file mode 100644 (file)
index 0000000..629d330
--- /dev/null
@@ -0,0 +1,2 @@
+class MessageController < ApplicationController
+end
diff --git a/app/models/message.rb b/app/models/message.rb
new file mode 100644 (file)
index 0000000..590e3e3
--- /dev/null
@@ -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 (file)
index 0000000..b49c4eb
--- /dev/null
@@ -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 (file)
index 0000000..3faadc7
--- /dev/null
@@ -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 (file)
index 0000000..54c8a18
--- /dev/null
@@ -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 (file)
index 0000000..8804fe0
--- /dev/null
@@ -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