Sha256: 8066c79cefb46d6b8bc8072a41f16a5eb7bf1d53238733158008760a0bd8d736
Contents?: true
Size: 830 Bytes
Versions: 1
Compression:
Stored size: 830 Bytes
Contents
# encoding: utf-8 if ENV['COVERAGE'] == 'true' require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start do command_name 'spec:unit' add_filter 'config' add_filter 'lib/rom/support' add_filter 'spec' end end require 'devtools/spec_helper' require 'rom' require 'bogus/rspec' include ROM include SpecHelper include Morpher::NodeHelpers TEST_ENV = Environment.setup(test: 'memory://test') do schema do base_relation :users do repository :test attribute :id, Integer attribute :name, String key :id end end mapping do relation(:users) do model mock_model(:id, :name) map :id, :name end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-0.2.0 | spec/spec_helper.rb |