added user stuff inc beginning of messages
This commit is contained in:
parent
1defb3ca1e
commit
9c5c71f2d7
6 changed files with 55 additions and 0 deletions
2
app/controllers/message_controller.rb
Normal file
2
app/controllers/message_controller.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class MessageController < ApplicationController
|
||||
end
|
2
app/models/message.rb
Normal file
2
app/models/message.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Message < ActiveRecord::Base
|
||||
end
|
5
test/fixtures/messages.yml
vendored
Normal file
5
test/fixtures/messages.yml
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
one:
|
||||
id: 1
|
||||
two:
|
||||
id: 2
|
18
test/functional/geocoder_controller_test.rb
Normal file
18
test/functional/geocoder_controller_test.rb
Normal 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
|
18
test/functional/message_controller_test.rb
Normal file
18
test/functional/message_controller_test.rb
Normal 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
10
test/unit/message_test.rb
Normal 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
|
Loading…
Add table
Reference in a new issue