Sha256: 1c13a49683b01c841856a5099677ed8595a0a724955609b742e8874d88442656
Contents?: true
Size: 933 Bytes
Versions: 4
Compression:
Stored size: 933 Bytes
Contents
# frozen_string_literal: true $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'rails' require 'bundler/setup' require 'swagger_docs_generator' require 'json-schema-rspec' require 'pry' Dir['spec/supporrt/**/*.rb'].each do |f| require File.expand_path(f) end ::Dir.glob(::File.expand_path('../support/**/*.rb', __FILE__)).each do |f| require_relative f end RSpec.configure do |config| # Configure RSpec config.expect_with :rspec do |c| c.syntax = :expect end # Add libraries config.include JSON::SchemaMatchers # Configure JSON::SchemaMatchers Dir[File.join('spec/support/schemas/', '*.json')].count do |file| json_file = JSON.parse(File.read(file)) json_name = File.basename(file, '.json').to_sym config.json_schemas[json_name] = json_file end # Exclude request with tag broken config.filter_run_excluding broken: true # Customize rspec config.color = true end
Version data entries
4 entries across 4 versions & 1 rubygems