Sha256: 4ebc20dfb56029b7ba45eb439c9e412cd7d97c7b7b8238caa93164680cc09aee

Contents?: true

Size: 930 Bytes

Versions: 2

Compression:

Stored size: 930 Bytes

Contents

unless RUBY_VERSION.to_s < '1.9.0'
  require 'simplecov'
  SimpleCov.command_name('cql-rspec')
end


# Ruby 1.8.x seems to have trouble if relative paths get too nested, so resolving the path before using it here
this_dir = File.expand_path(File.dirname(__FILE__))
require "#{this_dir}/../../../lib/cql"
require "#{this_dir}/../../../lib/cql/model_dsl"


require "#{this_dir}/../../cql_test_model"
require "#{this_dir}/../../model_helper"
require "#{this_dir}/../../helper_methods"
require "#{this_dir}/tag_filterable_specs"
require "#{this_dir}/name_filterable_specs"
require "#{this_dir}/line_count_filterable_specs"
require "#{this_dir}/line_filterable_specs"
require "#{this_dir}/queriable_specs"

require 'rubygems/mock_gem_ui'

CQL_FEATURE_FIXTURES_DIRECTORY = "#{this_dir}/../../fixtures/features"


RSpec.configure do |_config|

  include CQL::ModelHelper
  include CQL::HelperMethods

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cql-1.7.0 testing/rspec/spec/spec_helper.rb
cql-1.6.0 testing/rspec/spec/spec_helper.rb