goldiloader 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/goldiloader/active_record_patches.rb +3 -3
- data/lib/goldiloader/version.rb +1 -1
- metadata +4 -22
- data/.gitignore +0 -21
- data/.rspec +0 -2
- data/.travis.yml +0 -28
- data/CHANGELOG.md +0 -67
- data/Gemfile +0 -3
- data/README.md +0 -186
- data/Rakefile +0 -9
- data/goldiloader.gemspec +0 -40
- data/spec/db/database.yml +0 -3
- data/spec/db/schema.rb +0 -175
- data/spec/goldiloader/auto_include_context_spec.rb +0 -164
- data/spec/goldiloader/goldiloader_spec.rb +0 -787
- data/spec/spec_helper.rb +0 -50
data/spec/spec_helper.rb
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
require 'simplecov'
|
4
|
-
require 'coveralls'
|
5
|
-
|
6
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
7
|
-
SimpleCov::Formatter::HTMLFormatter,
|
8
|
-
Coveralls::SimpleCov::Formatter
|
9
|
-
]
|
10
|
-
SimpleCov.start do
|
11
|
-
add_filter 'spec'
|
12
|
-
end
|
13
|
-
|
14
|
-
require 'logger'
|
15
|
-
require 'database_cleaner'
|
16
|
-
require 'goldiloader'
|
17
|
-
require 'yaml'
|
18
|
-
|
19
|
-
FileUtils.makedirs('log')
|
20
|
-
|
21
|
-
ActiveRecord::Base.logger = Logger.new('log/test.log')
|
22
|
-
ActiveRecord::Base.logger.level = Logger::DEBUG
|
23
|
-
ActiveRecord::Migration.verbose = false
|
24
|
-
|
25
|
-
db_adapter = ENV.fetch('ADAPTER', 'sqlite3')
|
26
|
-
config = YAML.load(File.read('spec/db/database.yml'))
|
27
|
-
ActiveRecord::Base.establish_connection(config[db_adapter])
|
28
|
-
require 'db/schema'
|
29
|
-
|
30
|
-
RSpec.configure do |config|
|
31
|
-
config.order = 'random'
|
32
|
-
|
33
|
-
config.before(:suite) do
|
34
|
-
DatabaseCleaner.clean_with(:truncation)
|
35
|
-
end
|
36
|
-
|
37
|
-
config.before(:each) do
|
38
|
-
DatabaseCleaner.strategy = :transaction
|
39
|
-
end
|
40
|
-
|
41
|
-
config.before(:each) do
|
42
|
-
DatabaseCleaner.start
|
43
|
-
end
|
44
|
-
|
45
|
-
config.after(:each) do
|
46
|
-
DatabaseCleaner.clean
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
puts "Testing with ActiveRecord #{ActiveRecord::VERSION::STRING}"
|