File: unified_spec.rb

package info (click to toggle)
ruby-mongo 2.21.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,764 kB
  • sloc: ruby: 108,806; makefile: 5; sh: 2
file content (18 lines) | stat: -rw-r--r-- 520 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true
# rubocop:todo all

require 'spec_helper'

require 'runners/unified'

base = "#{CURRENT_PATH}/spec_tests/data/unified"
PASS_UNIFIED_TESTS = Dir.glob("#{base}/valid-pass/**/*.yml").sort
FAIL_UNIFIED_TESTS = Dir.glob("#{base}/valid-fail/**/*.yml").sort

describe 'Unified spec tests - valid pass' do
  define_unified_spec_tests(base, PASS_UNIFIED_TESTS)
end

describe 'Unified spec tests - expected failures' do
  define_unified_spec_tests(base, FAIL_UNIFIED_TESTS, expect_failure: true)
end