lotus-model 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/test/test_helper.rb DELETED
@@ -1,30 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler/setup'
3
-
4
- if ENV['COVERAGE'] == 'true'
5
- require 'simplecov'
6
- require 'coveralls'
7
-
8
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
9
- SimpleCov::Formatter::HTMLFormatter,
10
- Coveralls::SimpleCov::Formatter
11
- ]
12
-
13
- SimpleCov.start do
14
- command_name 'test'
15
- add_filter 'test'
16
- end
17
- end
18
-
19
- require 'minitest/autorun'
20
- $:.unshift 'lib'
21
- require 'lotus-model'
22
- require 'lotus/model/adapters/memory_adapter'
23
- require 'lotus/model/adapters/sql_adapter'
24
-
25
- db = Pathname.new(__dir__).join('../tmp/test.db')
26
- db.dirname.mkpath # create directory if not exist
27
- db.delete if db.exist? # delete file if exist
28
-
29
- SQLITE_CONNECTION_STRING = "sqlite://#{ db }"
30
- require 'fixtures'
data/test/version_test.rb DELETED
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- describe Lotus::Model::VERSION do
4
- it 'returns current version' do
5
- Lotus::Model::VERSION.must_equal '0.1.0'
6
- end
7
- end