Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 95 lines (78 sloc) 2.751 kB
51a3c5c @brixen Added ruby.2.0.mspec.
brixen authored
1 # Configuration file for Ruby 2.0-compatible Ruby implementations.
2 #
3 # Unless you passed to --config (or -B) to MSpec, MSpec will automatically
4 # use this config file if the Ruby interpreter with which MSpec advertises
5 # itself with RUBY_VERSION =~ /2.0/
6
7 class MSpecScript
8 # Language features specs
9 set :language, [ 'language' ]
10
11 # Core library specs
12 set :core, [
13 'core',
14 ]
15
16 # Standard library specs
17 set :library, [
18 'library',
19
20 # obsolete libraries
21 '^library/cgi-lib',
22 '^library/date2',
23 '^library/enumerator',
24 '^library/eregex',
25 '^library/finalize',
26 '^library/ftools',
27 '^library/generator',
28 '^library/getopts',
29 '^library/importenv',
30 '^library/jcode',
31 '^library/mailread',
32 '^library/parsearg',
33 '^library/parsedate',
34 '^library/ping',
35 '^library/readbytes',
36 '^library/rubyunit',
37 '^library/runit',
38 '^library/soap',
39 '^library/wsdl',
40 '^library/xsd',
41 '^library/Win32API',
42
43 '^library/test/unit/collector',
44 '^library/test/unit/ui',
45 '^library/test/unit/util',
46
47 '^library/dl', # reimplemented and API changed
48 ]
49
50 # An ordered list of the directories containing specs to run
51 set :files, get(:language) + get(:core) + get(:library)
52
53 # This set of files is run by mspec ci
54 set :ci_files, get(:files)
55
56 # Optional library specs
57 set :ffi, 'optional/ffi'
58
59 # A list of _all_ optional library specs
60 set :optional, [get(:ffi)]
61
62 # The default implementation to run the specs.
63 # TODO: this needs to be more sophisticated since the
64 # executable is not consistently named.
65 set :target, 'ruby1.9'
66
67 set :backtrace_filter, /mspec\//
68
69 set :tags_patterns, [
70 [%r(language/), 'tags/1.9/language/'],
71 [%r(core/), 'tags/1.9/core/'],
72 [%r(command_line/), 'tags/1.9/command_line/'],
73 [%r(library/), 'tags/1.9/library/'],
74 [/_spec.rb$/, '_tags.txt']
75 ]
76
77 # Enable features
78 MSpec.enable_feature :fiber
79 MSpec.enable_feature :fiber_library
80 MSpec.enable_feature :continuation_library
81 MSpec.enable_feature :fork
82 MSpec.enable_feature :encoding
83
84 # These are encoding-aware methods backported to 1.8.7+ (eg String#bytes)
85 MSpec.enable_feature :encoding_transition
86
87 # The Readline specs are not enabled by default because the functionality
88 # depends heavily on the underlying library, including whether certain
89 # methods are implemented or not. This makes it extremely difficult to
90 # make the specs consistently pass. Until a suitable scheme to handle
91 # all these issues, the specs will not be enabled by default.
92 #
93 # MSpec.enable_feature :readline
94 end
Something went wrong with that request. Please try again.