Sha256: 0133ea89591e3466ad4c2d6667ae863ab659ff4df0959010acf063948519d0c9
Contents?: true
Size: 1.35 KB
Versions: 2
Compression:
Stored size: 1.35 KB
Contents
require 'rubygems' require 'test/unit' require 'shoulda' require 'mocks/test/ofac_sdn_loader' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'ofac' ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => ':memory:' class Test::Unit::TestCase def setup_ofac_sdn_table ActiveRecord::Base.connection.tables.each { |table| ActiveRecord::Base.connection.drop_table(table) } create_ofac_sdn_table end private def create_ofac_sdn_table silence_stream(STDOUT) do ActiveRecord::Schema.define(:version => 1) do create_table :ofac_sdns do |t| t.text :name t.string :sdn_type t.string :program t.string :title t.string :vessel_call_sign t.string :vessel_type t.string :vessel_tonnage t.string :gross_registered_tonnage t.string :vessel_flag t.string :vessel_owner t.text :remarks t.text :address t.string :city t.string :country t.string :address_remarks t.string :alternate_identity_type t.text :alternate_identity_name t.string :alternate_identity_remarks t.timestamps end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kevintyll-ofac-1.0.0 | test/test_helper.rb |
kevintyll-ofac-1.1.0 | test/test_helper.rb |