init import from old mailr project (http://svn.littlegreen.org/mailr/trunk)
This commit is contained in:
commit
51b79e7298
640 changed files with 34651 additions and 0 deletions
5
test/fixtures/expressions.yml
vendored
Normal file
5
test/fixtures/expressions.yml
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
first_expression:
|
||||
id: 1
|
||||
another_expression:
|
||||
id: 2
|
5
test/fixtures/filters.yml
vendored
Normal file
5
test/fixtures/filters.yml
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
first_filter:
|
||||
id: 1
|
||||
another_filter:
|
||||
id: 2
|
5
test/fixtures/users.yml
vendored
Normal file
5
test/fixtures/users.yml
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||
first_user:
|
||||
id: 1
|
||||
another_user:
|
||||
id: 2
|
13
test/test_helper.rb
Normal file
13
test/test_helper.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
ENV["RAILS_ENV"] = "test"
|
||||
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
||||
require 'test_help'
|
||||
|
||||
class Test::Unit::TestCase
|
||||
# Turn off transactional fixtures if you're working with MyISAM tables in MySQL
|
||||
self.use_transactional_fixtures = true
|
||||
|
||||
# Instantiated fixtures are slow, but give you @david where you otherwise would need people(:david)
|
||||
self.use_instantiated_fixtures = false
|
||||
|
||||
# Add more helper methods to be used by all tests here...
|
||||
end
|
14
test/unit/expression_test.rb
Normal file
14
test/unit/expression_test.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class ExpressionTest < Test::Unit::TestCase
|
||||
fixtures :expressions
|
||||
|
||||
def setup
|
||||
@expression = Expression.find(1)
|
||||
end
|
||||
|
||||
# Replace this with your real tests.
|
||||
def test_truth
|
||||
assert_kind_of Expression, @expression
|
||||
end
|
||||
end
|
14
test/unit/filter_test.rb
Normal file
14
test/unit/filter_test.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class FilterTest < Test::Unit::TestCase
|
||||
fixtures :filters
|
||||
|
||||
def setup
|
||||
@filter = Filter.find(1)
|
||||
end
|
||||
|
||||
# Replace this with your real tests.
|
||||
def test_truth
|
||||
assert_kind_of Filter, @filter
|
||||
end
|
||||
end
|
14
test/unit/user_test.rb
Normal file
14
test/unit/user_test.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class UserTest < Test::Unit::TestCase
|
||||
fixtures :users
|
||||
|
||||
def setup
|
||||
@user = User.find(1)
|
||||
end
|
||||
|
||||
# Replace this with your real tests.
|
||||
def test_truth
|
||||
assert_kind_of User, @user
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue