opal-rspec-cj 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/.gitmodules +15 -0
- data/.travis.yml +13 -0
- data/.yardopts +5 -0
- data/CHANGELOG.md +25 -0
- data/Gemfile +8 -0
- data/README.md +147 -0
- data/Rakefile +26 -0
- data/config.ru +10 -0
- data/example/Gemfile +4 -0
- data/example/README.md +13 -0
- data/example/Rakefile +8 -0
- data/example/opal/user.rb +11 -0
- data/example/spec/user_spec.rb +15 -0
- data/lib/opal-rspec.rb +2 -0
- data/lib/opal/rspec.rb +20 -0
- data/lib/opal/rspec/rake_task.rb +63 -0
- data/lib/opal/rspec/version.rb +5 -0
- data/opal-rspec.gemspec +21 -0
- data/opal/opal-rspec.rb +1 -0
- data/opal/opal/rspec.rb +25 -0
- data/opal/opal/rspec/async.rb +289 -0
- data/opal/opal/rspec/browser_formatter.rb +188 -0
- data/opal/opal/rspec/fixes.rb +116 -0
- data/opal/opal/rspec/requires.rb +45 -0
- data/opal/opal/rspec/runner.rb +69 -0
- data/opal/opal/rspec/sprockets_runner.rb.erb +11 -0
- data/opal/opal/rspec/text_formatter.rb +74 -0
- data/spec/async_spec.rb +38 -0
- data/spec/example_spec.rb +163 -0
- data/spec/matchers_spec.rb +201 -0
- data/spec/mock_spec.rb +63 -0
- data/spec/named_subject_spec.rb +11 -0
- data/spec/should_syntax_spec.rb +17 -0
- data/vendor/spec_runner.js +50 -0
- data/vendor_lib/rspec-expectations.rb +1 -0
- data/vendor_lib/rspec.rb +3 -0
- data/vendor_lib/rspec/autorun.rb +2 -0
- data/vendor_lib/rspec/core.rb +203 -0
- data/vendor_lib/rspec/core/backport_random.rb +302 -0
- data/vendor_lib/rspec/core/backtrace_formatter.rb +65 -0
- data/vendor_lib/rspec/core/command_line.rb +36 -0
- data/vendor_lib/rspec/core/configuration.rb +1129 -0
- data/vendor_lib/rspec/core/configuration_options.rb +143 -0
- data/vendor_lib/rspec/core/drb_command_line.rb +26 -0
- data/vendor_lib/rspec/core/drb_options.rb +87 -0
- data/vendor_lib/rspec/core/dsl.rb +26 -0
- data/vendor_lib/rspec/core/example.rb +312 -0
- data/vendor_lib/rspec/core/example_group.rb +540 -0
- data/vendor_lib/rspec/core/filter_manager.rb +224 -0
- data/vendor_lib/rspec/core/flat_map.rb +17 -0
- data/vendor_lib/rspec/core/formatters.rb +54 -0
- data/vendor_lib/rspec/core/formatters/base_formatter.rb +291 -0
- data/vendor_lib/rspec/core/formatters/base_text_formatter.rb +307 -0
- data/vendor_lib/rspec/core/formatters/deprecation_formatter.rb +193 -0
- data/vendor_lib/rspec/core/formatters/documentation_formatter.rb +67 -0
- data/vendor_lib/rspec/core/formatters/helpers.rb +82 -0
- data/vendor_lib/rspec/core/formatters/html_formatter.rb +155 -0
- data/vendor_lib/rspec/core/formatters/html_printer.rb +408 -0
- data/vendor_lib/rspec/core/formatters/json_formatter.rb +99 -0
- data/vendor_lib/rspec/core/formatters/progress_formatter.rb +32 -0
- data/vendor_lib/rspec/core/formatters/snippet_extractor.rb +101 -0
- data/vendor_lib/rspec/core/hooks.rb +535 -0
- data/vendor_lib/rspec/core/memoized_helpers.rb +431 -0
- data/vendor_lib/rspec/core/metadata.rb +313 -0
- data/vendor_lib/rspec/core/mocking/with_absolutely_nothing.rb +11 -0
- data/vendor_lib/rspec/core/mocking/with_flexmock.rb +27 -0
- data/vendor_lib/rspec/core/mocking/with_mocha.rb +52 -0
- data/vendor_lib/rspec/core/mocking/with_rr.rb +27 -0
- data/vendor_lib/rspec/core/mocking/with_rspec.rb +27 -0
- data/vendor_lib/rspec/core/option_parser.rb +234 -0
- data/vendor_lib/rspec/core/ordering.rb +154 -0
- data/vendor_lib/rspec/core/pending.rb +110 -0
- data/vendor_lib/rspec/core/project_initializer.rb +88 -0
- data/vendor_lib/rspec/core/rake_task.rb +128 -0
- data/vendor_lib/rspec/core/reporter.rb +132 -0
- data/vendor_lib/rspec/core/ruby_project.rb +44 -0
- data/vendor_lib/rspec/core/runner.rb +97 -0
- data/vendor_lib/rspec/core/shared_context.rb +53 -0
- data/vendor_lib/rspec/core/shared_example_group.rb +146 -0
- data/vendor_lib/rspec/core/shared_example_group/collection.rb +27 -0
- data/vendor_lib/rspec/core/version.rb +7 -0
- data/vendor_lib/rspec/core/warnings.rb +22 -0
- data/vendor_lib/rspec/core/world.rb +131 -0
- data/vendor_lib/rspec/expectations.rb +75 -0
- data/vendor_lib/rspec/expectations/differ.rb +154 -0
- data/vendor_lib/rspec/expectations/errors.rb +9 -0
- data/vendor_lib/rspec/expectations/expectation_target.rb +87 -0
- data/vendor_lib/rspec/expectations/extensions.rb +1 -0
- data/vendor_lib/rspec/expectations/extensions/object.rb +29 -0
- data/vendor_lib/rspec/expectations/fail_with.rb +79 -0
- data/vendor_lib/rspec/expectations/handler.rb +68 -0
- data/vendor_lib/rspec/expectations/syntax.rb +182 -0
- data/vendor_lib/rspec/expectations/version.rb +8 -0
- data/vendor_lib/rspec/matchers.rb +633 -0
- data/vendor_lib/rspec/matchers/built_in.rb +39 -0
- data/vendor_lib/rspec/matchers/built_in/base_matcher.rb +68 -0
- data/vendor_lib/rspec/matchers/built_in/be.rb +213 -0
- data/vendor_lib/rspec/matchers/built_in/be_instance_of.rb +15 -0
- data/vendor_lib/rspec/matchers/built_in/be_kind_of.rb +11 -0
- data/vendor_lib/rspec/matchers/built_in/be_within.rb +55 -0
- data/vendor_lib/rspec/matchers/built_in/change.rb +141 -0
- data/vendor_lib/rspec/matchers/built_in/cover.rb +21 -0
- data/vendor_lib/rspec/matchers/built_in/eq.rb +22 -0
- data/vendor_lib/rspec/matchers/built_in/eql.rb +23 -0
- data/vendor_lib/rspec/matchers/built_in/equal.rb +48 -0
- data/vendor_lib/rspec/matchers/built_in/exist.rb +26 -0
- data/vendor_lib/rspec/matchers/built_in/has.rb +48 -0
- data/vendor_lib/rspec/matchers/built_in/include.rb +61 -0
- data/vendor_lib/rspec/matchers/built_in/match.rb +17 -0
- data/vendor_lib/rspec/matchers/built_in/match_array.rb +51 -0
- data/vendor_lib/rspec/matchers/built_in/raise_error.rb +154 -0
- data/vendor_lib/rspec/matchers/built_in/respond_to.rb +74 -0
- data/vendor_lib/rspec/matchers/built_in/satisfy.rb +30 -0
- data/vendor_lib/rspec/matchers/built_in/start_and_end_with.rb +48 -0
- data/vendor_lib/rspec/matchers/built_in/throw_symbol.rb +94 -0
- data/vendor_lib/rspec/matchers/built_in/yield.rb +297 -0
- data/vendor_lib/rspec/matchers/compatibility.rb +14 -0
- data/vendor_lib/rspec/matchers/configuration.rb +113 -0
- data/vendor_lib/rspec/matchers/dsl.rb +23 -0
- data/vendor_lib/rspec/matchers/generated_descriptions.rb +35 -0
- data/vendor_lib/rspec/matchers/matcher.rb +301 -0
- data/vendor_lib/rspec/matchers/method_missing.rb +12 -0
- data/vendor_lib/rspec/matchers/operator_matcher.rb +99 -0
- data/vendor_lib/rspec/matchers/pretty.rb +70 -0
- data/vendor_lib/rspec/matchers/test_unit_integration.rb +11 -0
- data/vendor_lib/rspec/mocks.rb +100 -0
- data/vendor_lib/rspec/mocks/any_instance/chain.rb +92 -0
- data/vendor_lib/rspec/mocks/any_instance/expectation_chain.rb +47 -0
- data/vendor_lib/rspec/mocks/any_instance/message_chains.rb +75 -0
- data/vendor_lib/rspec/mocks/any_instance/recorder.rb +200 -0
- data/vendor_lib/rspec/mocks/any_instance/stub_chain.rb +45 -0
- data/vendor_lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
- data/vendor_lib/rspec/mocks/argument_list_matcher.rb +104 -0
- data/vendor_lib/rspec/mocks/argument_matchers.rb +264 -0
- data/vendor_lib/rspec/mocks/arity_calculator.rb +66 -0
- data/vendor_lib/rspec/mocks/configuration.rb +111 -0
- data/vendor_lib/rspec/mocks/error_generator.rb +203 -0
- data/vendor_lib/rspec/mocks/errors.rb +12 -0
- data/vendor_lib/rspec/mocks/example_methods.rb +201 -0
- data/vendor_lib/rspec/mocks/extensions/marshal.rb +17 -0
- data/vendor_lib/rspec/mocks/framework.rb +36 -0
- data/vendor_lib/rspec/mocks/instance_method_stasher.rb +112 -0
- data/vendor_lib/rspec/mocks/matchers/have_received.rb +99 -0
- data/vendor_lib/rspec/mocks/matchers/receive.rb +112 -0
- data/vendor_lib/rspec/mocks/matchers/receive_messages.rb +72 -0
- data/vendor_lib/rspec/mocks/message_expectation.rb +643 -0
- data/vendor_lib/rspec/mocks/method_double.rb +209 -0
- data/vendor_lib/rspec/mocks/method_reference.rb +95 -0
- data/vendor_lib/rspec/mocks/mock.rb +7 -0
- data/vendor_lib/rspec/mocks/mutate_const.rb +406 -0
- data/vendor_lib/rspec/mocks/object_reference.rb +90 -0
- data/vendor_lib/rspec/mocks/order_group.rb +82 -0
- data/vendor_lib/rspec/mocks/proxy.rb +269 -0
- data/vendor_lib/rspec/mocks/proxy_for_nil.rb +37 -0
- data/vendor_lib/rspec/mocks/space.rb +95 -0
- data/vendor_lib/rspec/mocks/standalone.rb +3 -0
- data/vendor_lib/rspec/mocks/stub_chain.rb +51 -0
- data/vendor_lib/rspec/mocks/syntax.rb +374 -0
- data/vendor_lib/rspec/mocks/targets.rb +90 -0
- data/vendor_lib/rspec/mocks/test_double.rb +109 -0
- data/vendor_lib/rspec/mocks/verifying_double.rb +77 -0
- data/vendor_lib/rspec/mocks/verifying_message_expecation.rb +60 -0
- data/vendor_lib/rspec/mocks/verifying_proxy.rb +151 -0
- data/vendor_lib/rspec/mocks/version.rb +7 -0
- data/vendor_lib/rspec/support.rb +6 -0
- data/vendor_lib/rspec/support/caller_filter.rb +56 -0
- data/vendor_lib/rspec/support/spec.rb +14 -0
- data/vendor_lib/rspec/support/spec/deprecation_helpers.rb +29 -0
- data/vendor_lib/rspec/support/spec/in_sub_process.rb +40 -0
- data/vendor_lib/rspec/support/spec/stderr_splitter.rb +50 -0
- data/vendor_lib/rspec/support/version.rb +7 -0
- data/vendor_lib/rspec/support/warnings.rb +41 -0
- data/vendor_lib/rspec/version.rb +5 -0
- metadata +268 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
module RSpec
|
2
|
+
# Consistent implementation for "cleaning" the caller method to strip out
|
3
|
+
# non-rspec lines. This enables errors to be reported at the call site in
|
4
|
+
# the code using the library, which is far more useful than the particular
|
5
|
+
# internal method that raised an error.
|
6
|
+
class CallerFilter
|
7
|
+
|
8
|
+
RSPEC_LIBS = %w[
|
9
|
+
core
|
10
|
+
mocks
|
11
|
+
expectations
|
12
|
+
support
|
13
|
+
matchers
|
14
|
+
rails
|
15
|
+
]
|
16
|
+
|
17
|
+
ADDITIONAL_TOP_LEVEL_FILES = %w[ autorun ]
|
18
|
+
|
19
|
+
LIB_REGEX = %r{/lib/rspec/(#{(RSPEC_LIBS + ADDITIONAL_TOP_LEVEL_FILES).join('|')})(\.rb|/)}
|
20
|
+
|
21
|
+
if RUBY_VERSION >= '2.0.0'
|
22
|
+
def self.first_non_rspec_line
|
23
|
+
# `caller` is an expensive method that scales linearly with the size of
|
24
|
+
# the stack. The performance hit for fetching it in chunks is small,
|
25
|
+
# and since the target line is probably near the top of the stack, the
|
26
|
+
# overall improvement of a chunked search like this is significant.
|
27
|
+
#
|
28
|
+
# See benchmarks/caller.rb for measurements.
|
29
|
+
|
30
|
+
# Initial value here is mostly arbitrary, but is chosen to give good
|
31
|
+
# performance on the common case of creating a double.
|
32
|
+
increment = 5
|
33
|
+
i = 1
|
34
|
+
line = nil
|
35
|
+
|
36
|
+
while !line
|
37
|
+
stack = caller(i, increment)
|
38
|
+
raise "No non-lib lines in stack" unless stack
|
39
|
+
|
40
|
+
line = stack.find { |l| l !~ LIB_REGEX }
|
41
|
+
|
42
|
+
i += increment
|
43
|
+
increment *= 2 # The choice of two here is arbitrary.
|
44
|
+
end
|
45
|
+
|
46
|
+
line
|
47
|
+
end
|
48
|
+
else
|
49
|
+
# Earlier rubies do not support the two argument form of `caller`. This
|
50
|
+
# fallback is logically the same, but slower.
|
51
|
+
def self.first_non_rspec_line
|
52
|
+
caller.find { |line| line !~ LIB_REGEX }
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'rspec/support/spec/deprecation_helpers'
|
2
|
+
require 'rspec/support/spec/stderr_splitter'
|
3
|
+
|
4
|
+
warning_preventer = $stderr = RSpec::Support::StdErrSplitter.new($stderr)
|
5
|
+
|
6
|
+
RSpec.configure do |c|
|
7
|
+
c.include RSpecHelpers
|
8
|
+
c.before do
|
9
|
+
warning_preventer.reset!
|
10
|
+
end
|
11
|
+
c.after do |example|
|
12
|
+
warning_preventer.verify_example!(example)
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module RSpecHelpers
|
2
|
+
def expect_deprecation_with_call_site(file, line)
|
3
|
+
expect(RSpec.configuration.reporter).to receive(:deprecation) do |options|
|
4
|
+
expect(options[:call_site]).to include([file, line].join(':'))
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
def allow_deprecation
|
9
|
+
allow(RSpec.configuration.reporter).to receive(:deprecation)
|
10
|
+
end
|
11
|
+
|
12
|
+
def expect_warning_without_call_site(expected = //)
|
13
|
+
expect(::Kernel).to receive(:warn) do |message|
|
14
|
+
expect(message).to match expected
|
15
|
+
expect(message).to_not match(/Called from/)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def expect_warning_with_call_site(file, line, expected = //)
|
20
|
+
expect(::Kernel).to receive(:warn) do |message|
|
21
|
+
expect(message).to match expected
|
22
|
+
expect(message).to match(/Called from #{file}:#{line}/)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def allow_warning
|
27
|
+
allow(::Kernel).to receive(:warn)
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Support
|
3
|
+
module InSubProcess
|
4
|
+
if Process.respond_to?(:fork) && !(RUBY_PLATFORM == 'java' && RUBY_VERSION == '1.8.7')
|
5
|
+
# Useful as a way to isolate a global change to a subprocess.
|
6
|
+
def in_sub_process
|
7
|
+
readme, writeme = IO.pipe
|
8
|
+
|
9
|
+
pid = Process.fork do
|
10
|
+
exception = nil
|
11
|
+
begin
|
12
|
+
yield
|
13
|
+
rescue Exception => e
|
14
|
+
exception = e
|
15
|
+
end
|
16
|
+
|
17
|
+
writeme.write Marshal.dump(exception)
|
18
|
+
|
19
|
+
readme.close
|
20
|
+
writeme.close
|
21
|
+
exit! # prevent at_exit hooks from running (e.g. minitest)
|
22
|
+
end
|
23
|
+
|
24
|
+
writeme.close
|
25
|
+
Process.waitpid(pid)
|
26
|
+
|
27
|
+
exception = Marshal.load(readme.read)
|
28
|
+
readme.close
|
29
|
+
|
30
|
+
raise exception if exception
|
31
|
+
end
|
32
|
+
else
|
33
|
+
def in_sub_process
|
34
|
+
pending "This spec requires forking to work properly, " +
|
35
|
+
"and your platform does not support forking"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'stringio'
|
2
|
+
|
3
|
+
module RSpec
|
4
|
+
module Support
|
5
|
+
class StdErrSplitter < (defined?(::BasicObject) ? ::BasicObject : ::Object)
|
6
|
+
def initialize(original)
|
7
|
+
@orig_stderr = original
|
8
|
+
@output_tracker = ::StringIO.new
|
9
|
+
end
|
10
|
+
|
11
|
+
respond_to_name = (::RUBY_VERSION.to_f < 1.9) ? :respond_to? : :respond_to_missing?
|
12
|
+
define_method respond_to_name do |*args|
|
13
|
+
@orig_stderr.respond_to?(*args) || super
|
14
|
+
end
|
15
|
+
|
16
|
+
def method_missing(name, *args, &block)
|
17
|
+
@output_tracker.__send__(name, *args, &block)
|
18
|
+
@orig_stderr.__send__(name, *args, &block)
|
19
|
+
end
|
20
|
+
|
21
|
+
def ==(other)
|
22
|
+
@orig_stderr == other
|
23
|
+
end
|
24
|
+
|
25
|
+
# To work around JRuby error:
|
26
|
+
# TypeError: $stderr must have write method, RSpec::StdErrSplitter given
|
27
|
+
def write(*args)
|
28
|
+
@orig_stderr.write(*args)
|
29
|
+
@output_tracker.write(*args)
|
30
|
+
end
|
31
|
+
|
32
|
+
def has_output?
|
33
|
+
!output.empty?
|
34
|
+
end
|
35
|
+
|
36
|
+
def reset!
|
37
|
+
@output_tracker = ::StringIO.new
|
38
|
+
end
|
39
|
+
|
40
|
+
def verify_example!(example)
|
41
|
+
example.send(:fail,"Warnings were generated: #{output}") if has_output?
|
42
|
+
reset!
|
43
|
+
end
|
44
|
+
|
45
|
+
def output
|
46
|
+
@output_tracker.string
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module RSpec
|
2
|
+
|
3
|
+
unless respond_to?(:deprecate)
|
4
|
+
|
5
|
+
# @private
|
6
|
+
#
|
7
|
+
# Used internally to print deprecation warnings
|
8
|
+
# when rspec-core isn't loaded
|
9
|
+
def self.deprecate(deprecated, options = {})
|
10
|
+
warn_with "DEPRECATION: #{deprecated} is deprecated.", options
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
unless respond_to?(:warn_deprecation)
|
15
|
+
|
16
|
+
# @private
|
17
|
+
#
|
18
|
+
# Used internally to print deprecation warnings
|
19
|
+
# when rspec-core isn't loaded
|
20
|
+
def self.warn_deprecation(message)
|
21
|
+
warn_with "DEPRECATION: \n #{message}"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
# @private
|
26
|
+
#
|
27
|
+
# Used internally to print warnings
|
28
|
+
def self.warning(text, options={})
|
29
|
+
warn_with "WARNING: #{text}.", options
|
30
|
+
end
|
31
|
+
|
32
|
+
# @private
|
33
|
+
#
|
34
|
+
# Used internally to print longer warnings
|
35
|
+
def self.warn_with(message, options = {})
|
36
|
+
call_site = options.fetch(:call_site) { CallerFilter.first_non_rspec_line }
|
37
|
+
message << " Called from #{call_site}." if call_site
|
38
|
+
::Kernel.warn message
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
metadata
ADDED
@@ -0,0 +1,268 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: opal-rspec-cj
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Adam Beynon
|
8
|
+
- CJ Lazell
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-06-25 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: opal
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 0.7.0
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '0.9'
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 0.7.0
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.9'
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: rake
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
type: :development
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: yard
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
description: Opal compatible rspec library
|
63
|
+
email:
|
64
|
+
- adam.beynon@gmail.com
|
65
|
+
- cjlazell@gmail.com
|
66
|
+
executables: []
|
67
|
+
extensions: []
|
68
|
+
extra_rdoc_files: []
|
69
|
+
files:
|
70
|
+
- ".gitignore"
|
71
|
+
- ".gitmodules"
|
72
|
+
- ".travis.yml"
|
73
|
+
- ".yardopts"
|
74
|
+
- CHANGELOG.md
|
75
|
+
- Gemfile
|
76
|
+
- README.md
|
77
|
+
- Rakefile
|
78
|
+
- config.ru
|
79
|
+
- example/Gemfile
|
80
|
+
- example/README.md
|
81
|
+
- example/Rakefile
|
82
|
+
- example/opal/user.rb
|
83
|
+
- example/spec/user_spec.rb
|
84
|
+
- lib/opal-rspec.rb
|
85
|
+
- lib/opal/rspec.rb
|
86
|
+
- lib/opal/rspec/rake_task.rb
|
87
|
+
- lib/opal/rspec/version.rb
|
88
|
+
- opal-rspec.gemspec
|
89
|
+
- opal/opal-rspec.rb
|
90
|
+
- opal/opal/rspec.rb
|
91
|
+
- opal/opal/rspec/async.rb
|
92
|
+
- opal/opal/rspec/browser_formatter.rb
|
93
|
+
- opal/opal/rspec/fixes.rb
|
94
|
+
- opal/opal/rspec/requires.rb
|
95
|
+
- opal/opal/rspec/runner.rb
|
96
|
+
- opal/opal/rspec/sprockets_runner.rb.erb
|
97
|
+
- opal/opal/rspec/text_formatter.rb
|
98
|
+
- spec/async_spec.rb
|
99
|
+
- spec/example_spec.rb
|
100
|
+
- spec/matchers_spec.rb
|
101
|
+
- spec/mock_spec.rb
|
102
|
+
- spec/named_subject_spec.rb
|
103
|
+
- spec/should_syntax_spec.rb
|
104
|
+
- vendor/spec_runner.js
|
105
|
+
- vendor_lib/rspec-expectations.rb
|
106
|
+
- vendor_lib/rspec.rb
|
107
|
+
- vendor_lib/rspec/autorun.rb
|
108
|
+
- vendor_lib/rspec/core.rb
|
109
|
+
- vendor_lib/rspec/core/backport_random.rb
|
110
|
+
- vendor_lib/rspec/core/backtrace_formatter.rb
|
111
|
+
- vendor_lib/rspec/core/command_line.rb
|
112
|
+
- vendor_lib/rspec/core/configuration.rb
|
113
|
+
- vendor_lib/rspec/core/configuration_options.rb
|
114
|
+
- vendor_lib/rspec/core/drb_command_line.rb
|
115
|
+
- vendor_lib/rspec/core/drb_options.rb
|
116
|
+
- vendor_lib/rspec/core/dsl.rb
|
117
|
+
- vendor_lib/rspec/core/example.rb
|
118
|
+
- vendor_lib/rspec/core/example_group.rb
|
119
|
+
- vendor_lib/rspec/core/filter_manager.rb
|
120
|
+
- vendor_lib/rspec/core/flat_map.rb
|
121
|
+
- vendor_lib/rspec/core/formatters.rb
|
122
|
+
- vendor_lib/rspec/core/formatters/base_formatter.rb
|
123
|
+
- vendor_lib/rspec/core/formatters/base_text_formatter.rb
|
124
|
+
- vendor_lib/rspec/core/formatters/deprecation_formatter.rb
|
125
|
+
- vendor_lib/rspec/core/formatters/documentation_formatter.rb
|
126
|
+
- vendor_lib/rspec/core/formatters/helpers.rb
|
127
|
+
- vendor_lib/rspec/core/formatters/html_formatter.rb
|
128
|
+
- vendor_lib/rspec/core/formatters/html_printer.rb
|
129
|
+
- vendor_lib/rspec/core/formatters/json_formatter.rb
|
130
|
+
- vendor_lib/rspec/core/formatters/progress_formatter.rb
|
131
|
+
- vendor_lib/rspec/core/formatters/snippet_extractor.rb
|
132
|
+
- vendor_lib/rspec/core/hooks.rb
|
133
|
+
- vendor_lib/rspec/core/memoized_helpers.rb
|
134
|
+
- vendor_lib/rspec/core/metadata.rb
|
135
|
+
- vendor_lib/rspec/core/mocking/with_absolutely_nothing.rb
|
136
|
+
- vendor_lib/rspec/core/mocking/with_flexmock.rb
|
137
|
+
- vendor_lib/rspec/core/mocking/with_mocha.rb
|
138
|
+
- vendor_lib/rspec/core/mocking/with_rr.rb
|
139
|
+
- vendor_lib/rspec/core/mocking/with_rspec.rb
|
140
|
+
- vendor_lib/rspec/core/option_parser.rb
|
141
|
+
- vendor_lib/rspec/core/ordering.rb
|
142
|
+
- vendor_lib/rspec/core/pending.rb
|
143
|
+
- vendor_lib/rspec/core/project_initializer.rb
|
144
|
+
- vendor_lib/rspec/core/rake_task.rb
|
145
|
+
- vendor_lib/rspec/core/reporter.rb
|
146
|
+
- vendor_lib/rspec/core/ruby_project.rb
|
147
|
+
- vendor_lib/rspec/core/runner.rb
|
148
|
+
- vendor_lib/rspec/core/shared_context.rb
|
149
|
+
- vendor_lib/rspec/core/shared_example_group.rb
|
150
|
+
- vendor_lib/rspec/core/shared_example_group/collection.rb
|
151
|
+
- vendor_lib/rspec/core/version.rb
|
152
|
+
- vendor_lib/rspec/core/warnings.rb
|
153
|
+
- vendor_lib/rspec/core/world.rb
|
154
|
+
- vendor_lib/rspec/expectations.rb
|
155
|
+
- vendor_lib/rspec/expectations/differ.rb
|
156
|
+
- vendor_lib/rspec/expectations/errors.rb
|
157
|
+
- vendor_lib/rspec/expectations/expectation_target.rb
|
158
|
+
- vendor_lib/rspec/expectations/extensions.rb
|
159
|
+
- vendor_lib/rspec/expectations/extensions/object.rb
|
160
|
+
- vendor_lib/rspec/expectations/fail_with.rb
|
161
|
+
- vendor_lib/rspec/expectations/handler.rb
|
162
|
+
- vendor_lib/rspec/expectations/syntax.rb
|
163
|
+
- vendor_lib/rspec/expectations/version.rb
|
164
|
+
- vendor_lib/rspec/matchers.rb
|
165
|
+
- vendor_lib/rspec/matchers/built_in.rb
|
166
|
+
- vendor_lib/rspec/matchers/built_in/base_matcher.rb
|
167
|
+
- vendor_lib/rspec/matchers/built_in/be.rb
|
168
|
+
- vendor_lib/rspec/matchers/built_in/be_instance_of.rb
|
169
|
+
- vendor_lib/rspec/matchers/built_in/be_kind_of.rb
|
170
|
+
- vendor_lib/rspec/matchers/built_in/be_within.rb
|
171
|
+
- vendor_lib/rspec/matchers/built_in/change.rb
|
172
|
+
- vendor_lib/rspec/matchers/built_in/cover.rb
|
173
|
+
- vendor_lib/rspec/matchers/built_in/eq.rb
|
174
|
+
- vendor_lib/rspec/matchers/built_in/eql.rb
|
175
|
+
- vendor_lib/rspec/matchers/built_in/equal.rb
|
176
|
+
- vendor_lib/rspec/matchers/built_in/exist.rb
|
177
|
+
- vendor_lib/rspec/matchers/built_in/has.rb
|
178
|
+
- vendor_lib/rspec/matchers/built_in/include.rb
|
179
|
+
- vendor_lib/rspec/matchers/built_in/match.rb
|
180
|
+
- vendor_lib/rspec/matchers/built_in/match_array.rb
|
181
|
+
- vendor_lib/rspec/matchers/built_in/raise_error.rb
|
182
|
+
- vendor_lib/rspec/matchers/built_in/respond_to.rb
|
183
|
+
- vendor_lib/rspec/matchers/built_in/satisfy.rb
|
184
|
+
- vendor_lib/rspec/matchers/built_in/start_and_end_with.rb
|
185
|
+
- vendor_lib/rspec/matchers/built_in/throw_symbol.rb
|
186
|
+
- vendor_lib/rspec/matchers/built_in/yield.rb
|
187
|
+
- vendor_lib/rspec/matchers/compatibility.rb
|
188
|
+
- vendor_lib/rspec/matchers/configuration.rb
|
189
|
+
- vendor_lib/rspec/matchers/dsl.rb
|
190
|
+
- vendor_lib/rspec/matchers/generated_descriptions.rb
|
191
|
+
- vendor_lib/rspec/matchers/matcher.rb
|
192
|
+
- vendor_lib/rspec/matchers/method_missing.rb
|
193
|
+
- vendor_lib/rspec/matchers/operator_matcher.rb
|
194
|
+
- vendor_lib/rspec/matchers/pretty.rb
|
195
|
+
- vendor_lib/rspec/matchers/test_unit_integration.rb
|
196
|
+
- vendor_lib/rspec/mocks.rb
|
197
|
+
- vendor_lib/rspec/mocks/any_instance/chain.rb
|
198
|
+
- vendor_lib/rspec/mocks/any_instance/expectation_chain.rb
|
199
|
+
- vendor_lib/rspec/mocks/any_instance/message_chains.rb
|
200
|
+
- vendor_lib/rspec/mocks/any_instance/recorder.rb
|
201
|
+
- vendor_lib/rspec/mocks/any_instance/stub_chain.rb
|
202
|
+
- vendor_lib/rspec/mocks/any_instance/stub_chain_chain.rb
|
203
|
+
- vendor_lib/rspec/mocks/argument_list_matcher.rb
|
204
|
+
- vendor_lib/rspec/mocks/argument_matchers.rb
|
205
|
+
- vendor_lib/rspec/mocks/arity_calculator.rb
|
206
|
+
- vendor_lib/rspec/mocks/configuration.rb
|
207
|
+
- vendor_lib/rspec/mocks/error_generator.rb
|
208
|
+
- vendor_lib/rspec/mocks/errors.rb
|
209
|
+
- vendor_lib/rspec/mocks/example_methods.rb
|
210
|
+
- vendor_lib/rspec/mocks/extensions/marshal.rb
|
211
|
+
- vendor_lib/rspec/mocks/framework.rb
|
212
|
+
- vendor_lib/rspec/mocks/instance_method_stasher.rb
|
213
|
+
- vendor_lib/rspec/mocks/matchers/have_received.rb
|
214
|
+
- vendor_lib/rspec/mocks/matchers/receive.rb
|
215
|
+
- vendor_lib/rspec/mocks/matchers/receive_messages.rb
|
216
|
+
- vendor_lib/rspec/mocks/message_expectation.rb
|
217
|
+
- vendor_lib/rspec/mocks/method_double.rb
|
218
|
+
- vendor_lib/rspec/mocks/method_reference.rb
|
219
|
+
- vendor_lib/rspec/mocks/mock.rb
|
220
|
+
- vendor_lib/rspec/mocks/mutate_const.rb
|
221
|
+
- vendor_lib/rspec/mocks/object_reference.rb
|
222
|
+
- vendor_lib/rspec/mocks/order_group.rb
|
223
|
+
- vendor_lib/rspec/mocks/proxy.rb
|
224
|
+
- vendor_lib/rspec/mocks/proxy_for_nil.rb
|
225
|
+
- vendor_lib/rspec/mocks/space.rb
|
226
|
+
- vendor_lib/rspec/mocks/standalone.rb
|
227
|
+
- vendor_lib/rspec/mocks/stub_chain.rb
|
228
|
+
- vendor_lib/rspec/mocks/syntax.rb
|
229
|
+
- vendor_lib/rspec/mocks/targets.rb
|
230
|
+
- vendor_lib/rspec/mocks/test_double.rb
|
231
|
+
- vendor_lib/rspec/mocks/verifying_double.rb
|
232
|
+
- vendor_lib/rspec/mocks/verifying_message_expecation.rb
|
233
|
+
- vendor_lib/rspec/mocks/verifying_proxy.rb
|
234
|
+
- vendor_lib/rspec/mocks/version.rb
|
235
|
+
- vendor_lib/rspec/support.rb
|
236
|
+
- vendor_lib/rspec/support/caller_filter.rb
|
237
|
+
- vendor_lib/rspec/support/spec.rb
|
238
|
+
- vendor_lib/rspec/support/spec/deprecation_helpers.rb
|
239
|
+
- vendor_lib/rspec/support/spec/in_sub_process.rb
|
240
|
+
- vendor_lib/rspec/support/spec/stderr_splitter.rb
|
241
|
+
- vendor_lib/rspec/support/version.rb
|
242
|
+
- vendor_lib/rspec/support/warnings.rb
|
243
|
+
- vendor_lib/rspec/version.rb
|
244
|
+
homepage: http://opalrb.org
|
245
|
+
licenses: []
|
246
|
+
metadata: {}
|
247
|
+
post_install_message:
|
248
|
+
rdoc_options: []
|
249
|
+
require_paths:
|
250
|
+
- lib
|
251
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
252
|
+
requirements:
|
253
|
+
- - ">="
|
254
|
+
- !ruby/object:Gem::Version
|
255
|
+
version: '0'
|
256
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
257
|
+
requirements:
|
258
|
+
- - ">="
|
259
|
+
- !ruby/object:Gem::Version
|
260
|
+
version: '0'
|
261
|
+
requirements: []
|
262
|
+
rubyforge_project:
|
263
|
+
rubygems_version: 2.2.2
|
264
|
+
signing_key:
|
265
|
+
specification_version: 4
|
266
|
+
summary: RSpec for Opal
|
267
|
+
test_files: []
|
268
|
+
has_rdoc:
|