Sha256: b9d9bae20d4115f2e49331a390490b5577a0d4755b3fe6a9717068fae5bbd153

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 KB

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}/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"

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


RSpec.configure do |config|

  if Gem.loaded_specs['cuke_modeler'].version.version[/^0/]
    config.filter_run_excluding :cuke_modeler_1x => true
  end

  config.before(:all) do
    @feature_fixtures_directory = CQL_FEATURE_FIXTURES_DIRECTORY
  end

  config.before(:each) do
    # Nothing yet
  end

  config.after(:each) do
    # Nothing yet
  end
end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cql-1.4.2 testing/rspec/spec/spec_helper.rb
cql-1.4.1 testing/rspec/spec/spec_helper.rb
cql-1.4.0 testing/rspec/spec/spec_helper.rb
cql-1.3.0 testing/rspec/spec/spec_helper.rb