Sha256: a76851165cbc2dd26ac5005494d8ae18586687582b107a4ee6fd7607a0c5644e
Contents?: true
Size: 1.23 KB
Versions: 4
Compression:
Stored size: 1.23 KB
Contents
require 'rspec' $:.unshift File.expand_path('../../', __FILE__) require 'singleton' require 'logger' require 'forwardable' require 'active_mocker/logger' require 'string_reader' require 'active_mocker/public_methods' require 'file_reader' require 'active_mocker/collection_association' require 'active_mocker/table' require 'active_mocker/config' require 'active_mocker/reparameterize' require 'active_mocker/field' require 'active_mocker/active_record' require 'active_mocker/model_reader' require 'active_mocker/schema_reader' require 'active_mocker/active_record/schema' require 'active_support/all' require 'active_hash/ar_api' require 'active_mocker/generate' require 'erb' describe ActiveMocker::Generate do before(:each) do spec_root = File.expand_path('../../../../', __FILE__) ActiveMocker.config do |config| # Required Options config.schema_file = File.join(spec_root, 'sample_app_rails_4/db/schema.rb') config.model_dir = File.join(spec_root, 'sample_app_rails_4/app/models') config.mock_dir = File.join(spec_root, '/mocks') # Logging config.log_level = Logger::WARN #default end end describe 'new' do it 'generates all mocks' do described_class.new end end end
Version data entries
4 entries across 4 versions & 1 rubygems