Add Globalize2 so that we get some nice fall backs to other languages when a translation is missing in the requested language.
This commit is contained in:
parent
6ba51da46e
commit
283a3e9ba9
42 changed files with 2670 additions and 0 deletions
26
vendor/plugins/globalize2/test/test_helper.rb
vendored
Normal file
26
vendor/plugins/globalize2/test/test_helper.rb
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
require 'rubygems'
|
||||
require 'test/unit'
|
||||
require 'active_support'
|
||||
require 'active_support/test_case'
|
||||
require 'mocha'
|
||||
|
||||
$LOAD_PATH << File.expand_path( File.dirname(__FILE__) + '/../lib' )
|
||||
|
||||
class ActiveSupport::TestCase
|
||||
def reset_db!( schema_path )
|
||||
::ActiveRecord::Migration.verbose = false # Quiet down the migration engine
|
||||
::ActiveRecord::Base.establish_connection({
|
||||
:adapter => 'sqlite3',
|
||||
:dbfile => ':memory:'
|
||||
})
|
||||
::ActiveRecord::Base.silence do
|
||||
load schema_path
|
||||
end
|
||||
end
|
||||
|
||||
def assert_member(item, arr)
|
||||
assert_block "Item #{item} is not in array #{arr}" do
|
||||
arr.member? item
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue