Sha256: fe56d8df4259497df0c3b17f0d4a13a6f773f03b6b88ef040803df731025ede3
Contents?: true
Size: 1.33 KB
Versions: 4
Compression:
Stored size: 1.33 KB
Contents
#require 'cover_me' #CoverMe.config do |c| # # where is your project's root: # c.project.root="c:/a_work/ruby_docs/lolita3" # => "Rails.root" (default) # # # what files are you interested in coverage for: # #c.file_pattern # => /(#{CoverMe.config.project.root}\/app\/.+\.rb|#{CoverMe.config.project.root}\/lib\/.+\.rb)/i (default) # # # where do you want the HTML generated: # c.html_formatter.output_path # => File.join(CoverMe.config.project.root, 'coverage') (default) # # # what do you want to happen when it finishes: # c.at_exit # => Proc.new { # if CoverMe.config.formatter == CoverMe::HtmlFormatter # index = File.join(CoverMe.config.html_formatter.output_path, 'index.html') # if File.exists?(index) # `open #{index}` # end # end # #end require 'rubygems' #require 'ruby-debug' LOLITA_ORM=:mongoid require "orm/#{LOLITA_ORM}" require "rails_app/config/environment" require 'rspec/rails' require 'ffaker' require 'factory_girl' Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| # config.mock_with :mocha # config.mock_with :flexmock # config.mock_with :rr config.mock_with :rspec if LOLITA_ORM==:active_record #config.fixture_path = "#{::Rails.root}/spec/fixtures" config.use_transactional_fixtures = true end end #CoverMe.complete! #require 'simplecov' #SimpleCov.start 'rails'
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lolita-3.0.7 | spec/spec_helper.rb |
lolita-3.0.6 | spec/spec_helper.rb |
lolita-3.0.5 | spec/spec_helper.rb |
lolita-3.0.4 | spec/spec_helper.rb |