opal-rspec 0.5.0.beta2 → 0.5.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +23 -4
- data/CHANGELOG.md +22 -1
- data/Gemfile +10 -3
- data/README.md +142 -36
- data/Rakefile +101 -75
- data/config.ru +8 -6
- data/gemfiles/opal_master.gemfile +18 -0
- data/lib/opal/rspec.rb +6 -10
- data/lib/opal/rspec/cached_environment.rb +23 -0
- data/lib/opal/rspec/post_rack_locator.rb +20 -0
- data/lib/opal/rspec/pre_rack_locator.rb +68 -0
- data/lib/opal/rspec/rake_task.rb +97 -20
- data/lib/opal/rspec/sprockets_environment.rb +35 -0
- data/lib/opal/rspec/version.rb +1 -1
- data/opal-rspec.gemspec +9 -12
- data/opal/opal/rspec.rb +11 -8
- data/opal/opal/rspec/async.rb +1 -0
- data/opal/opal/rspec/async/async_example.rb +27 -18
- data/opal/opal/rspec/async/example_group.rb +23 -21
- data/opal/opal/rspec/async/hooks.rb +0 -36
- data/opal/opal/rspec/async/reporter.rb +9 -0
- data/opal/opal/rspec/fixes.rb +3 -10
- data/opal/opal/rspec/fixes/opal.rb +5 -0
- data/opal/opal/rspec/fixes/opal/class.rb +8 -0
- data/opal/opal/rspec/fixes/opal/compatibility.rb +228 -0
- data/opal/opal/rspec/fixes/opal/corelib.rb +3 -0
- data/opal/opal/rspec/fixes/opal/corelib/error.rb +61 -0
- data/opal/opal/rspec/fixes/opal/corelib/regexp.rb +92 -0
- data/opal/opal/rspec/fixes/opal/corelib/struct.rb +260 -0
- data/opal/opal/rspec/fixes/opal/kernel.rb +80 -0
- data/opal/opal/rspec/fixes/opal/stdlib.rb +2 -0
- data/opal/opal/rspec/fixes/opal/stdlib/pp.rb +23 -0
- data/opal/opal/rspec/fixes/opal/stdlib/set.rb +36 -0
- data/opal/opal/rspec/fixes/rspec.rb +7 -0
- data/opal/opal/rspec/fixes/{caller_filter.rb → rspec/caller_filter.rb} +0 -0
- data/opal/opal/rspec/fixes/rspec/core.rb +9 -0
- data/opal/opal/rspec/fixes/rspec/core/configuration.rb +11 -0
- data/opal/opal/rspec/fixes/{example.rb → rspec/core/example.rb} +1 -1
- data/opal/opal/rspec/fixes/rspec/core/example_group.rb +9 -0
- data/opal/opal/rspec/fixes/rspec/core/formatters.rb +6 -0
- data/opal/opal/rspec/fixes/rspec/core/formatters/backtrace_formatter.rb +20 -0
- data/opal/opal/rspec/fixes/rspec/core/formatters/console_codes.rb +11 -0
- data/opal/opal/rspec/fixes/rspec/core/formatters/deprecation_formatter.rb +20 -0
- data/opal/opal/rspec/fixes/rspec/core/formatters/generated_deprecation_message.rb +15 -0
- data/opal/opal/rspec/fixes/rspec/core/formatters/json_formatter.rb +10 -0
- data/opal/opal/rspec/fixes/rspec/core/formatters/loader.rb +38 -0
- data/opal/opal/rspec/fixes/rspec/core/metadata.rb +39 -0
- data/opal/opal/rspec/fixes/rspec/core/notifications.rb +3 -0
- data/opal/opal/rspec/fixes/rspec/core/notifications/examples_notification.rb +30 -0
- data/opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb +20 -0
- data/opal/opal/rspec/fixes/rspec/core/notifications/summary_notification.rb +26 -0
- data/opal/opal/rspec/fixes/rspec/core/ordering.rb +1 -0
- data/opal/opal/rspec/fixes/rspec/core/ordering/random.rb +13 -0
- data/opal/opal/rspec/fixes/rspec/core/reporter.rb +14 -0
- data/opal/opal/rspec/fixes/rspec/core/warnings.rb +18 -0
- data/opal/opal/rspec/fixes/rspec/example_groups.rb +49 -0
- data/opal/opal/rspec/fixes/rspec/expectations.rb +2 -0
- data/opal/opal/rspec/fixes/{expectations.rb → rspec/expectations/fail_with.rb} +0 -0
- data/opal/opal/rspec/fixes/rspec/expectations/syntax.rb +25 -0
- data/opal/opal/rspec/fixes/rspec/matchers.rb +2 -0
- data/opal/opal/rspec/fixes/rspec/matchers/built_in.rb +4 -0
- data/opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb +10 -0
- data/opal/opal/rspec/fixes/rspec/matchers/built_in/compound.rb +15 -0
- data/opal/opal/rspec/fixes/rspec/matchers/built_in/start_and_end_with.rb +42 -0
- data/opal/opal/rspec/fixes/rspec/matchers/built_in/yield.rb +21 -0
- data/opal/opal/rspec/fixes/{matchers.rb → rspec/matchers/pretty.rb} +0 -0
- data/opal/opal/rspec/fixes/rspec/mocks.rb +4 -0
- data/opal/opal/rspec/fixes/rspec/mocks/error_generator.rb +40 -0
- data/opal/opal/rspec/fixes/rspec/mocks/space.rb +37 -0
- data/opal/opal/rspec/fixes/rspec/mocks/test_double.rb +39 -0
- data/opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb +29 -0
- data/opal/opal/rspec/fixes/rspec/support.rb +4 -0
- data/opal/opal/rspec/fixes/rspec/support/encoded_string.rb +10 -0
- data/opal/opal/rspec/fixes/rspec/support/fuzzy_matcher.rb +23 -0
- data/opal/opal/rspec/fixes/rspec/support/recursive_const_methods.rb +7 -0
- data/opal/opal/rspec/fixes/rspec/support/ruby_features.rb +8 -0
- data/opal/opal/rspec/fixes/rspec/support/warnings.rb +18 -0
- data/opal/opal/rspec/formatter/browser_formatter.rb +38 -0
- data/opal/opal/rspec/formatter/document_io.rb +27 -0
- data/opal/opal/rspec/formatter/element.rb +88 -0
- data/opal/opal/rspec/formatter/html_printer.rb +109 -0
- data/opal/opal/rspec/formatter/noop_flush_string_io.rb +9 -0
- data/opal/opal/rspec/formatter/opal_closed_tty_io.rb +27 -0
- data/opal/opal/rspec/pre_require_fixes.rb +7 -0
- data/opal/opal/rspec/requires.rb +32 -0
- data/opal/opal/rspec/runner.rb +71 -53
- data/opal/opal/rspec/spec_opts.rb.erb +28 -0
- data/opal/opal/rspec/sprockets_runner.rb.erb +5 -3
- data/spec/mri/integration/browser_spec.rb +31 -0
- data/spec/mri/integration/rack/sprockets_runner_js_errors.rb.erb +20 -0
- data/spec/mri/integration/spec_opts_spec.rb +81 -0
- data/spec/mri/unit/opal/rspec/browser_formatter_spec.rb +35 -0
- data/spec/mri/unit/opal/rspec/cached_environment_spec.rb +103 -0
- data/spec/mri/unit/opal/rspec/opal/browser_formatter_spec.rb +14 -0
- data/spec/mri/unit/opal/rspec/rack/config.ru +12 -0
- data/spec/mri/unit/opal/rspec/rake_task_spec.rb +245 -0
- data/spec/mri/unit/opal/rspec/sprockets_environment_spec.rb +94 -0
- data/spec/mri/unit/opal/rspec/temp_dir_helper.rb +19 -0
- data/spec/{after_hooks_spec.rb → opal/after_hooks_spec.rb} +0 -0
- data/spec/{around_hooks_spec.rb → opal/around_hooks_spec.rb} +46 -105
- data/spec/{async_spec.rb → opal/async_spec.rb} +0 -0
- data/spec/{before_hooks_spec.rb → opal/before_hooks_spec.rb} +0 -0
- data/spec/{example_spec.rb → opal/example_spec.rb} +0 -0
- data/spec/opal/expected_failures.txt +40 -0
- data/spec/{matchers_spec.rb → opal/matchers_spec.rb} +0 -0
- data/spec/{mock_spec.rb → opal/mock_spec.rb} +0 -0
- data/spec/{should_syntax_spec.rb → opal/should_syntax_spec.rb} +0 -0
- data/spec/{skip_pending_spec.rb → opal/skip_pending_spec.rb} +0 -0
- data/spec/{subject_spec.rb → opal/subject_spec.rb} +16 -16
- data/spec/other/color_on_by_default_spec.rb +9 -0
- data/spec/other/dummy_spec.rb +5 -0
- data/spec/other/formatter_dependency.rb +3 -0
- data/spec/other/ignored_spec.opal +5 -0
- data/spec/other/test_formatter.rb +9 -0
- data/spec/rspec/core/config.rb +5 -0
- data/spec/rspec/core/config.ru +4 -0
- data/spec/rspec/core/core_spec_loader.rb +42 -0
- data/spec/rspec/core/filter/core/async/example_group.txt +13 -0
- data/spec/rspec/core/filter/core/async/hooks.rb +12 -0
- data/spec/rspec/core/filter/core/async/memoized_helpers.txt +3 -0
- data/spec/rspec/core/filter/core/async/metadata.txt +2 -0
- data/spec/rspec/core/filter/core/bugs/filter_manager.txt +4 -0
- data/spec/rspec/core/filter/core/bugs/formatters.txt +4 -0
- data/spec/rspec/core/filter/core/bugs/memoized_helpers.rb +11 -0
- data/spec/rspec/core/filter/core/bugs/metadata.txt +5 -0
- data/spec/rspec/core/filter/core/bugs/sandbox/subject_issue_test.rb +328 -0
- data/spec/rspec/core/filter/core/bugs/warnings_deprecations.txt +3 -0
- data/spec/rspec/core/filter/core/unsupported/core.txt +5 -0
- data/spec/rspec/core/filter/core/unsupported/example.txt +7 -0
- data/spec/rspec/core/filter/core/unsupported/example_group.txt +13 -0
- data/spec/rspec/core/filter/core/unsupported/filter_manager.txt +7 -0
- data/spec/rspec/core/filter/core/unsupported/formatters.txt +27 -0
- data/spec/rspec/core/filter/core/unsupported/hooks.txt +2 -0
- data/spec/rspec/core/filter/core/unsupported/memoized_helpers.txt +6 -0
- data/spec/rspec/core/filter/core/unsupported/metadata.txt +14 -0
- data/spec/rspec/core/filter/core/unsupported/metadata_filter.txt +2 -0
- data/spec/rspec/core/filter/core/unsupported/notifications.txt +8 -0
- data/spec/rspec/core/filter/core/unsupported/world.txt +3 -0
- data/spec/rspec/core/fixes/missing_constants.rb +20 -0
- data/spec/rspec/core/fixes/opal_itself.rb +38 -0
- data/spec/rspec/core/fixes/shared_examples.rb +3 -0
- data/spec/rspec/core/opal_alternates/rspec/core/example_group_spec.rb +145 -0
- data/spec/rspec/core/opal_alternates/rspec/core/failed_example_notification_spec.rb +31 -0
- data/spec/rspec/core/opal_alternates/rspec/core/hooks_spec.rb +113 -0
- data/spec/rspec/core/opal_alternates/rspec/core/memoized_helpers_spec.rb +36 -0
- data/spec/rspec/core/opal_alternates/rspec/core/metadata_spec.rb +48 -0
- data/spec/rspec/core/require_specs.rb +25 -0
- data/spec/rspec/core/sandboxing.rb +72 -0
- data/spec/rspec/core/spec_files_exclude.txt +41 -0
- data/spec/rspec/expectations/config.rb +16 -0
- data/spec/rspec/expectations/config.ru +4 -0
- data/spec/rspec/expectations/expectation_spec_loader.rb +106 -0
- data/spec/rspec/expectations/filter/bugs/aliased_matcher.txt +2 -0
- data/spec/rspec/expectations/filter/bugs/aliases.rb +13 -0
- data/spec/rspec/expectations/filter/bugs/base_matcher.txt +2 -0
- data/spec/rspec/expectations/filter/bugs/be.rb +4 -0
- data/spec/rspec/expectations/filter/bugs/be_instance_of.rb +7 -0
- data/spec/rspec/expectations/filter/bugs/be_spec.txt +2 -0
- data/spec/rspec/expectations/filter/bugs/configuration.txt +8 -0
- data/spec/rspec/expectations/filter/bugs/contain_exactly.rb +13 -0
- data/spec/rspec/expectations/filter/bugs/define_negated_matcher.rb +9 -0
- data/spec/rspec/expectations/filter/bugs/description_generation.rb +4 -0
- data/spec/rspec/expectations/filter/bugs/dsl.txt +14 -0
- data/spec/rspec/expectations/filter/bugs/equal.txt +3 -0
- data/spec/rspec/expectations/filter/bugs/expectation_target.txt +2 -0
- data/spec/rspec/expectations/filter/bugs/expectations.txt +2 -0
- data/spec/rspec/expectations/filter/bugs/have_attributes.rb +8 -0
- data/spec/rspec/expectations/filter/bugs/include.rb +4 -0
- data/spec/rspec/expectations/filter/bugs/operators.txt +2 -0
- data/spec/rspec/expectations/filter/bugs/raise_error.txt +2 -0
- data/spec/rspec/expectations/filter/bugs/respond_to.rb +13 -0
- data/spec/rspec/expectations/filter/bugs/sandbox/undef.rb +20 -0
- data/spec/rspec/expectations/filter/unsupported/aliases.txt +5 -0
- data/spec/rspec/expectations/filter/unsupported/be.txt +2 -0
- data/spec/rspec/expectations/filter/unsupported/be_instance_of.txt +3 -0
- data/spec/rspec/expectations/filter/unsupported/change.txt +2 -0
- data/spec/rspec/expectations/filter/unsupported/configuration.txt +2 -0
- data/spec/rspec/expectations/filter/unsupported/contain_exactly.txt +2 -0
- data/spec/rspec/expectations/filter/unsupported/description_generation.txt +6 -0
- data/spec/rspec/expectations/filter/unsupported/dsl.txt +8 -0
- data/spec/rspec/expectations/filter/unsupported/eq.txt +10 -0
- data/spec/rspec/expectations/filter/unsupported/equal.txt +3 -0
- data/spec/rspec/expectations/filter/unsupported/expectation_target.txt +2 -0
- data/spec/rspec/expectations/filter/unsupported/expectations.txt +8 -0
- data/spec/rspec/expectations/filter/unsupported/has.txt +2 -0
- data/spec/rspec/expectations/filter/unsupported/include.txt +3 -0
- data/spec/rspec/expectations/filter/unsupported/match.txt +2 -0
- data/spec/rspec/expectations/filter/unsupported/matchers.txt +11 -0
- data/spec/rspec/expectations/filter/unsupported/output.txt +14 -0
- data/spec/rspec/expectations/filter/unsupported/raise_error.txt +3 -0
- data/spec/rspec/expectations/filter/unsupported/respond_to.rb +5 -0
- data/spec/rspec/expectations/filter/unsupported/syntax.txt +3 -0
- data/spec/rspec/expectations/filter/unsupported/yield.txt +2 -0
- data/spec/rspec/expectations/fixes/example_patches.rb +32 -0
- data/spec/rspec/expectations/fixes/missing_constants.rb +12 -0
- data/spec/rspec/expectations/fixes/not_compatible.rb +6 -0
- data/spec/rspec/expectations/fixes/opal_itself.rb +140 -0
- data/spec/rspec/expectations/opal_alternates/be_instance_of_spec.rb +11 -0
- data/spec/rspec/expectations/opal_alternates/dsl_spec.rb +66 -0
- data/spec/rspec/expectations/opal_alternates/expectation_target_spec.rb +21 -0
- data/spec/rspec/expectations/opal_alternates/yield_spec.rb +11 -0
- data/spec/rspec/expectations/require_specs.rb +16 -0
- data/spec/rspec/expectations/shared_examples.rb +47 -0
- data/spec/rspec/expectations/spec_files_exclude.txt +2 -0
- data/spec/rspec/expectations/spec_helper_opal.rb +13 -0
- data/spec/rspec/filter_processor.rb +77 -0
- data/spec/rspec/mocks/config.ru +4 -0
- data/spec/rspec/mocks/filter/bugs/and_call_original.txt +9 -0
- data/spec/rspec/mocks/filter/bugs/and_wrap_original.txt +2 -0
- data/spec/rspec/mocks/filter/bugs/any_instance.rb +24 -0
- data/spec/rspec/mocks/filter/bugs/argument_matchers.rb +3 -0
- data/spec/rspec/mocks/filter/bugs/configuration.txt +2 -0
- data/spec/rspec/mocks/filter/bugs/double.txt +3 -0
- data/spec/rspec/mocks/filter/bugs/expiration.txt +2 -0
- data/spec/rspec/mocks/filter/bugs/instance_method_stasher.txt +2 -0
- data/spec/rspec/mocks/filter/bugs/methods.rb +5 -0
- data/spec/rspec/mocks/filter/bugs/mocks.txt +6 -0
- data/spec/rspec/mocks/filter/bugs/mutate_const.txt +2 -0
- data/spec/rspec/mocks/filter/bugs/partial_double.rb +8 -0
- data/spec/rspec/mocks/filter/bugs/receive.txt +5 -0
- data/spec/rspec/mocks/filter/bugs/should_syntax.txt +5 -0
- data/spec/rspec/mocks/filter/bugs/space.txt +2 -0
- data/spec/rspec/mocks/filter/bugs/spy.txt +5 -0
- data/spec/rspec/mocks/filter/bugs/stub_implementation.rb +9 -0
- data/spec/rspec/mocks/filter/unsupported/and_call_original.txt +5 -0
- data/spec/rspec/mocks/filter/unsupported/and_return.txt +2 -0
- data/spec/rspec/mocks/filter/unsupported/any_instance.rb +6 -0
- data/spec/rspec/mocks/filter/unsupported/argument_matchers.rb +10 -0
- data/spec/rspec/mocks/filter/unsupported/combining_implementation_instructions.rb +9 -0
- data/spec/rspec/mocks/filter/unsupported/double.rb +16 -0
- data/spec/rspec/mocks/filter/unsupported/expected_arg_verification.txt +2 -0
- data/spec/rspec/mocks/filter/unsupported/have_received.txt +2 -0
- data/spec/rspec/mocks/filter/unsupported/instance_double_with_class_loaded.txt +8 -0
- data/spec/rspec/mocks/filter/unsupported/mocks.rb +8 -0
- data/spec/rspec/mocks/filter/unsupported/nil_expectation_warning.rb +8 -0
- data/spec/rspec/mocks/filter/unsupported/partial_double.rb +6 -0
- data/spec/rspec/mocks/filter/unsupported/receive.txt +13 -0
- data/spec/rspec/mocks/filter/unsupported/receive_message_chain.rb +4 -0
- data/spec/rspec/mocks/filter/unsupported/receive_messages.txt +2 -0
- data/spec/rspec/mocks/filter/unsupported/should_syntax.txt +1 -0
- data/spec/rspec/mocks/filter/unsupported/space.rb +7 -0
- data/spec/rspec/mocks/filter/unsupported/stub.rb +7 -0
- data/spec/rspec/mocks/fixes/doubled_classes.rb +76 -0
- data/spec/rspec/mocks/fixes/missing_constants.rb +3 -0
- data/spec/rspec/mocks/fixes/opal_itself.rb +59 -0
- data/spec/rspec/mocks/mocks_spec_loader.rb +87 -0
- data/spec/rspec/mocks/require_specs.rb +15 -0
- data/spec/rspec/mocks/spec_files_exclude.txt +11 -0
- data/spec/rspec/mocks/spec_helper_opal.rb +129 -0
- data/spec/rspec/opal_rspec_spec_loader.rb +349 -0
- data/spec/rspec/shared/opal/fixes/deprecation_helpers.rb +31 -0
- data/spec/rspec/shared/opal/fixes/rspec_helpers.rb +6 -0
- data/spec/rspec/shared/opal/progress_json_formatter.rb +29 -0
- data/spec/rspec/support/config.rb +5 -0
- data/spec/rspec/support/config.ru +4 -0
- data/spec/rspec/support/filter/bugs/recursive_const_methods.txt +3 -0
- data/spec/rspec/support/filter/bugs/sandbox/basic_object.rb +30 -0
- data/spec/rspec/support/filter/bugs/stderr_splitter_spec.txt +2 -0
- data/spec/rspec/support/filter/bugs/support.txt +2 -0
- data/spec/rspec/support/filter/unsupported/fuzzy_matcher.txt +2 -0
- data/spec/rspec/support/filter/unsupported/support.rb +7 -0
- data/spec/rspec/support/filter/unsupported/warnings.txt +6 -0
- data/spec/rspec/support/fixes/missing_constants.rb +3 -0
- data/spec/rspec/support/fixes/opal_itself.rb +13 -0
- data/spec/rspec/support/require_specs.rb +15 -0
- data/spec/rspec/support/spec_files_exclude.txt +26 -0
- data/spec/rspec/support/spec_helper.rb +27 -0
- data/spec/rspec/support/support_spec_loader.rb +34 -0
- data/util/create_requires.rb +6 -2
- data/vendor/spec_runner.js +14 -0
- metadata +255 -43
- data/opal/opal/rspec/browser_formatter.rb +0 -225
- data/opal/opal/rspec/fixes/example_groups.rb +0 -32
- data/opal/opal/rspec/fixes/formatter.rb +0 -62
- data/opal/opal/rspec/fixes/kernel.rb +0 -48
- data/opal/opal/rspec/fixes/mocks.rb +0 -13
- data/opal/opal/rspec/fixes/reporter.rb +0 -12
- data/opal/opal/rspec/text_formatter.rb +0 -88
- data/spec_mri/integration/browser_spec.rb +0 -37
@@ -0,0 +1,31 @@
|
|
1
|
+
# Since our call site (locating which line a test is on does not yet work, we don't want to fail all of these mocks)
|
2
|
+
module RSpecHelpers
|
3
|
+
def expect_deprecation_with_call_site(file, line, snippet=//)
|
4
|
+
expect(RSpec.configuration.reporter).to receive(:deprecation) do |options|
|
5
|
+
#expect(options[:call_site]).to include([file, line].join(':'))
|
6
|
+
expect(options[:deprecated]).to match(snippet)
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
def expect_deprecation_without_call_site(snippet=//)
|
11
|
+
expect(RSpec.configuration.reporter).to receive(:deprecation) do |options|
|
12
|
+
#expect(options[:call_site]).to eq nil
|
13
|
+
expect(options[:deprecated]).to match(snippet)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def expect_warn_deprecation_with_call_site(file, line, snippet=//)
|
18
|
+
expect(RSpec.configuration.reporter).to receive(:deprecation) do |options|
|
19
|
+
message = options[:message]
|
20
|
+
expect(message).to match(snippet)
|
21
|
+
#expect(message).to include([file, line].join(':'))
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def expect_warning_with_call_site(file, line, expected=//)
|
26
|
+
expect(::Kernel).to receive(:warn) do |message|
|
27
|
+
expect(message).to match expected
|
28
|
+
#expect(message).to match(/Called from #{file}:#{line}/)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Opal::RSpec
|
2
|
+
# a good compromise between not mucking with the code we're testing but making it more machine readable
|
3
|
+
class ProgressJsonFormatter < ::RSpec::Core::Formatters::JsonFormatter
|
4
|
+
::RSpec::Core::Formatters.register self, :message, :dump_summary, :dump_profile, :example_passed, :example_pending, :example_failed, :close, :stop
|
5
|
+
|
6
|
+
def example_passed(_notification)
|
7
|
+
output.print ::RSpec::Core::Formatters::ConsoleCodes.wrap('.', :success)
|
8
|
+
end
|
9
|
+
|
10
|
+
def example_pending(_notification)
|
11
|
+
output.print ::RSpec::Core::Formatters::ConsoleCodes.wrap('*', :pending)
|
12
|
+
end
|
13
|
+
|
14
|
+
def example_failed(_notification)
|
15
|
+
output.print ::RSpec::Core::Formatters::ConsoleCodes.wrap('F', :failure)
|
16
|
+
end
|
17
|
+
|
18
|
+
def start_dump(_notification)
|
19
|
+
output.puts
|
20
|
+
end
|
21
|
+
|
22
|
+
def close(_notification)
|
23
|
+
output.puts # our dots will not have closed out with a CR
|
24
|
+
output.puts 'BEGIN JSON'
|
25
|
+
super
|
26
|
+
output.puts # Need a CR for popen to know we're done
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module SomeOtherModule
|
2
|
+
def howdy
|
3
|
+
puts 'stuff'
|
4
|
+
end
|
5
|
+
end
|
6
|
+
|
7
|
+
example = Class.new do
|
8
|
+
def basic_class
|
9
|
+
Class.new(BasicObject) do
|
10
|
+
def foo
|
11
|
+
:bar
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def inherited
|
17
|
+
Class.new(basic_class) do
|
18
|
+
# include ::Kernel
|
19
|
+
include SomeOtherModule
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def run
|
24
|
+
instance = inherited.new
|
25
|
+
# This will fail in Opal <= 0.9 with undefined method `howdy'
|
26
|
+
instance.howdy
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
example.new.run
|
@@ -0,0 +1,7 @@
|
|
1
|
+
rspec_filter 'support' do
|
2
|
+
# evals code
|
3
|
+
filter 'RSpec::Support behaves like a library that issues no warnings when loaded issues no warnings when loaded'
|
4
|
+
|
5
|
+
# undef'ing methods not working yet on Opal 0.8
|
6
|
+
filter('RSpec::Support.method_handle_for(object, method_name) fails with `NameError` when a method is fetched from an object that has overriden `method` to not return a method').unless { at_least_opal_0_9? }
|
7
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
# can't run ruby in isolation to test this
|
2
|
+
rspec warnings and deprecations works when required in isolation
|
3
|
+
|
4
|
+
# backtrace / line numbers
|
5
|
+
rspec warnings and deprecations #warning it should behave like warning helper sets the calling line
|
6
|
+
rspec warnings and deprecations #warn_with message, options it should behave like warning helper sets the calling line
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# https://github.com/opal/opal/issues/1110, fixed in Opal 0.9
|
2
|
+
unless Opal::RSpec::Compatibility.class_within_class_new_works?
|
3
|
+
# in recursive_const_methods_spec
|
4
|
+
module ::RSpec::Support::Foo
|
5
|
+
class Parent
|
6
|
+
UNDETECTED = 'Not seen when looking up constants in Bar'
|
7
|
+
end
|
8
|
+
|
9
|
+
class Bar < Parent
|
10
|
+
VAL = 10
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class ::RSpec::Core::Ordering::Random
|
2
|
+
# there are a lot of these in the RSpec specs that create noise
|
3
|
+
HIDE_RANDOM_WARNINGS = true
|
4
|
+
end
|
5
|
+
|
6
|
+
require 'rspec/support/spec/deprecation_helpers'
|
7
|
+
require 'rspec/support/spec/with_isolated_stderr'
|
8
|
+
require 'rspec/support/spec/stderr_splitter'
|
9
|
+
require 'rspec/support/spec/formatting_support'
|
10
|
+
require 'opal/fixes/deprecation_helpers'
|
11
|
+
require 'opal/fixes/rspec_helpers'
|
12
|
+
require_relative 'fixes/missing_constants'
|
13
|
+
require_relative 'fixes/opal_itself'
|
14
|
+
require_relative 'spec_helper'
|
15
|
+
require_relative 'config'
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# InSubprocess / forking
|
2
|
+
**/in_sub_process_spec.rb
|
3
|
+
|
4
|
+
# No diff support yet on Opal
|
5
|
+
**/differ_spec.rb
|
6
|
+
|
7
|
+
# File I/O
|
8
|
+
**/directory_maker_spec.rb
|
9
|
+
|
10
|
+
# OS stuff on Opal
|
11
|
+
**/os_spec.rb
|
12
|
+
|
13
|
+
# Shell not available on Opal
|
14
|
+
**/shell_out_spec.rb
|
15
|
+
|
16
|
+
# File I/O
|
17
|
+
**/caller_filter_spec.rb
|
18
|
+
|
19
|
+
# Uses eval
|
20
|
+
**/method_signature_verifier_spec.rb
|
21
|
+
|
22
|
+
# Not supported on Opal
|
23
|
+
**/encoded_string_spec.rb
|
24
|
+
|
25
|
+
# 1 example, file I/O
|
26
|
+
**/prevent_load_time_warnings_spec.rb
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rspec/support/spec/stderr_splitter'
|
2
|
+
|
3
|
+
warning_preventer = $stderr = RSpec::Support::StdErrSplitter.new($stderr)
|
4
|
+
|
5
|
+
RSpec.configure do |c|
|
6
|
+
c.include RSpecHelpers
|
7
|
+
c.include RSpec::Support::WithIsolatedStdErr
|
8
|
+
c.include RSpec::Support::FormattingSupport
|
9
|
+
|
10
|
+
unless defined?(Debugger) # debugger causes warnings when used
|
11
|
+
c.before do
|
12
|
+
warning_preventer.reset!
|
13
|
+
end
|
14
|
+
|
15
|
+
c.after do |example|
|
16
|
+
warning_preventer.verify_example!(example)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
if c.files_to_run.one?
|
21
|
+
c.full_backtrace = true
|
22
|
+
c.default_formatter = 'doc'
|
23
|
+
end
|
24
|
+
|
25
|
+
c.filter_run :focus
|
26
|
+
c.run_all_when_everything_filtered = true
|
27
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require_relative '../opal_rspec_spec_loader'
|
2
|
+
|
3
|
+
module Opal
|
4
|
+
module RSpec
|
5
|
+
module SupportSpecLoader
|
6
|
+
extend Opal::RSpec::OpalRSpecSpecLoader
|
7
|
+
|
8
|
+
def self.expected_pending_count
|
9
|
+
0
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.base_dir
|
13
|
+
'spec/rspec/support'
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.files_with_line_continue
|
17
|
+
[/support\/method_signature_verifier_spec.rb/]
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.spec_glob
|
21
|
+
%w{rspec-support/spec/**/*_spec.rb}
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.stubbed_requires
|
25
|
+
[
|
26
|
+
'rubygems',
|
27
|
+
'rspec/support/spec/shell_out', # only does stuff Opal can't support anyways,
|
28
|
+
'spec', # we have our own version of this in spec_helper that's compatible
|
29
|
+
'simplecov', # hooks aren't available on Opal
|
30
|
+
]
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
data/util/create_requires.rb
CHANGED
@@ -7,9 +7,13 @@ Object.send(:remove_const, :Random)
|
|
7
7
|
|
8
8
|
# These scripts allow a leaner top level spec (like noted here)
|
9
9
|
BASE_FILES = %w{rspec rspec/mocks rspec/expectations rspec/core rspec/core/mocking_adapters/rspec}
|
10
|
-
FORMATTERS = %w{base_formatter html_printer}.map {|f| "rspec/core/formatters/#{f}"}
|
10
|
+
FORMATTERS = %w{base_formatter base_text_formatter progress_formatter documentation_formatter html_printer json_formatter}.map {|f| "rspec/core/formatters/#{f}"}
|
11
|
+
MATCHERS = Dir.glob('rspec-expectations/lib/rspec/matchers/built_in/**/*.rb').map do |each_file|
|
12
|
+
path = Pathname.new(each_file).relative_path_from(Pathname.new('rspec-expectations/lib')).to_s
|
13
|
+
path.sub File.extname(path), ''
|
14
|
+
end
|
11
15
|
MOCK_STUFF = %w{matchers/expectation_customization any_instance}.map { |f| "rspec/mocks/#{f}" }
|
12
|
-
REQUIRES = BASE_FILES + FORMATTERS + MOCK_STUFF
|
16
|
+
REQUIRES = BASE_FILES + FORMATTERS + MATCHERS + MOCK_STUFF
|
13
17
|
|
14
18
|
# Should not need to edit below this
|
15
19
|
|
data/vendor/spec_runner.js
CHANGED
@@ -14,6 +14,20 @@ page.onInitialized = function() {
|
|
14
14
|
});
|
15
15
|
};
|
16
16
|
|
17
|
+
var system = require('system');
|
18
|
+
page.onCallback = function(data) {
|
19
|
+
switch (data[0]) {
|
20
|
+
case 'stdout':
|
21
|
+
system.stdout.write(data[1] || '');
|
22
|
+
break;
|
23
|
+
case 'stderr':
|
24
|
+
system.stderr.write(data[1] || '');
|
25
|
+
break;
|
26
|
+
default:
|
27
|
+
console.error('Unknown callback data: ', data);
|
28
|
+
}
|
29
|
+
};
|
30
|
+
|
17
31
|
/*
|
18
32
|
* Exit phantom instance "safely" see - https://github.com/ariya/phantomjs/issues/12697
|
19
33
|
* https://github.com/nobuoka/gulp-qunit/commit/d242aff9b79de7543d956e294b2ee36eda4bac6c
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.0.
|
4
|
+
version: 0.5.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Beynon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|
@@ -16,34 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.8.0
|
19
|
+
version: 0.8.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '0.
|
22
|
+
version: '0.10'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.8.0
|
29
|
+
version: 0.8.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '0.
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: opal-minitest
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0.0'
|
40
|
-
type: :runtime
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '0.0'
|
32
|
+
version: '0.10'
|
47
33
|
- !ruby/object:Gem::Dependency
|
48
34
|
name: rake
|
49
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,9 +78,14 @@ files:
|
|
92
78
|
- example/Rakefile
|
93
79
|
- example/opal/user.rb
|
94
80
|
- example/spec/user_spec.rb
|
81
|
+
- gemfiles/opal_master.gemfile
|
95
82
|
- lib/opal-rspec.rb
|
96
83
|
- lib/opal/rspec.rb
|
84
|
+
- lib/opal/rspec/cached_environment.rb
|
85
|
+
- lib/opal/rspec/post_rack_locator.rb
|
86
|
+
- lib/opal/rspec/pre_rack_locator.rb
|
97
87
|
- lib/opal/rspec/rake_task.rb
|
88
|
+
- lib/opal/rspec/sprockets_environment.rb
|
98
89
|
- lib/opal/rspec/version.rb
|
99
90
|
- opal-rspec.gemspec
|
100
91
|
- opal/opal-rspec.rb
|
@@ -104,22 +95,74 @@ files:
|
|
104
95
|
- opal/opal/rspec/async/example_group.rb
|
105
96
|
- opal/opal/rspec/async/hooks.rb
|
106
97
|
- opal/opal/rspec/async/legacy.rb
|
107
|
-
- opal/opal/rspec/
|
98
|
+
- opal/opal/rspec/async/reporter.rb
|
108
99
|
- opal/opal/rspec/fixes.rb
|
109
|
-
- opal/opal/rspec/fixes/
|
110
|
-
- opal/opal/rspec/fixes/
|
111
|
-
- opal/opal/rspec/fixes/
|
112
|
-
- opal/opal/rspec/fixes/
|
113
|
-
- opal/opal/rspec/fixes/
|
114
|
-
- opal/opal/rspec/fixes/
|
115
|
-
- opal/opal/rspec/fixes/
|
116
|
-
- opal/opal/rspec/fixes/
|
117
|
-
- opal/opal/rspec/fixes/
|
100
|
+
- opal/opal/rspec/fixes/opal.rb
|
101
|
+
- opal/opal/rspec/fixes/opal/class.rb
|
102
|
+
- opal/opal/rspec/fixes/opal/compatibility.rb
|
103
|
+
- opal/opal/rspec/fixes/opal/corelib.rb
|
104
|
+
- opal/opal/rspec/fixes/opal/corelib/error.rb
|
105
|
+
- opal/opal/rspec/fixes/opal/corelib/regexp.rb
|
106
|
+
- opal/opal/rspec/fixes/opal/corelib/struct.rb
|
107
|
+
- opal/opal/rspec/fixes/opal/kernel.rb
|
108
|
+
- opal/opal/rspec/fixes/opal/stdlib.rb
|
109
|
+
- opal/opal/rspec/fixes/opal/stdlib/pp.rb
|
110
|
+
- opal/opal/rspec/fixes/opal/stdlib/set.rb
|
111
|
+
- opal/opal/rspec/fixes/rspec.rb
|
112
|
+
- opal/opal/rspec/fixes/rspec/caller_filter.rb
|
113
|
+
- opal/opal/rspec/fixes/rspec/core.rb
|
114
|
+
- opal/opal/rspec/fixes/rspec/core/configuration.rb
|
115
|
+
- opal/opal/rspec/fixes/rspec/core/example.rb
|
116
|
+
- opal/opal/rspec/fixes/rspec/core/example_group.rb
|
117
|
+
- opal/opal/rspec/fixes/rspec/core/formatters.rb
|
118
|
+
- opal/opal/rspec/fixes/rspec/core/formatters/backtrace_formatter.rb
|
119
|
+
- opal/opal/rspec/fixes/rspec/core/formatters/console_codes.rb
|
120
|
+
- opal/opal/rspec/fixes/rspec/core/formatters/deprecation_formatter.rb
|
121
|
+
- opal/opal/rspec/fixes/rspec/core/formatters/generated_deprecation_message.rb
|
122
|
+
- opal/opal/rspec/fixes/rspec/core/formatters/json_formatter.rb
|
123
|
+
- opal/opal/rspec/fixes/rspec/core/formatters/loader.rb
|
124
|
+
- opal/opal/rspec/fixes/rspec/core/metadata.rb
|
125
|
+
- opal/opal/rspec/fixes/rspec/core/notifications.rb
|
126
|
+
- opal/opal/rspec/fixes/rspec/core/notifications/examples_notification.rb
|
127
|
+
- opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
|
128
|
+
- opal/opal/rspec/fixes/rspec/core/notifications/summary_notification.rb
|
129
|
+
- opal/opal/rspec/fixes/rspec/core/ordering.rb
|
130
|
+
- opal/opal/rspec/fixes/rspec/core/ordering/random.rb
|
131
|
+
- opal/opal/rspec/fixes/rspec/core/reporter.rb
|
132
|
+
- opal/opal/rspec/fixes/rspec/core/warnings.rb
|
133
|
+
- opal/opal/rspec/fixes/rspec/example_groups.rb
|
134
|
+
- opal/opal/rspec/fixes/rspec/expectations.rb
|
135
|
+
- opal/opal/rspec/fixes/rspec/expectations/fail_with.rb
|
136
|
+
- opal/opal/rspec/fixes/rspec/expectations/syntax.rb
|
137
|
+
- opal/opal/rspec/fixes/rspec/matchers.rb
|
138
|
+
- opal/opal/rspec/fixes/rspec/matchers/built_in.rb
|
139
|
+
- opal/opal/rspec/fixes/rspec/matchers/built_in/all.rb
|
140
|
+
- opal/opal/rspec/fixes/rspec/matchers/built_in/compound.rb
|
141
|
+
- opal/opal/rspec/fixes/rspec/matchers/built_in/start_and_end_with.rb
|
142
|
+
- opal/opal/rspec/fixes/rspec/matchers/built_in/yield.rb
|
143
|
+
- opal/opal/rspec/fixes/rspec/matchers/pretty.rb
|
144
|
+
- opal/opal/rspec/fixes/rspec/mocks.rb
|
145
|
+
- opal/opal/rspec/fixes/rspec/mocks/error_generator.rb
|
146
|
+
- opal/opal/rspec/fixes/rspec/mocks/space.rb
|
147
|
+
- opal/opal/rspec/fixes/rspec/mocks/test_double.rb
|
148
|
+
- opal/opal/rspec/fixes/rspec/mocks/verifying_double.rb
|
149
|
+
- opal/opal/rspec/fixes/rspec/support.rb
|
150
|
+
- opal/opal/rspec/fixes/rspec/support/encoded_string.rb
|
151
|
+
- opal/opal/rspec/fixes/rspec/support/fuzzy_matcher.rb
|
152
|
+
- opal/opal/rspec/fixes/rspec/support/recursive_const_methods.rb
|
153
|
+
- opal/opal/rspec/fixes/rspec/support/ruby_features.rb
|
154
|
+
- opal/opal/rspec/fixes/rspec/support/warnings.rb
|
155
|
+
- opal/opal/rspec/formatter/browser_formatter.rb
|
156
|
+
- opal/opal/rspec/formatter/document_io.rb
|
157
|
+
- opal/opal/rspec/formatter/element.rb
|
158
|
+
- opal/opal/rspec/formatter/html_printer.rb
|
159
|
+
- opal/opal/rspec/formatter/noop_flush_string_io.rb
|
160
|
+
- opal/opal/rspec/formatter/opal_closed_tty_io.rb
|
118
161
|
- opal/opal/rspec/pre_require_fixes.rb
|
119
162
|
- opal/opal/rspec/requires.rb
|
120
163
|
- opal/opal/rspec/runner.rb
|
164
|
+
- opal/opal/rspec/spec_opts.rb.erb
|
121
165
|
- opal/opal/rspec/sprockets_runner.rb.erb
|
122
|
-
- opal/opal/rspec/text_formatter.rb
|
123
166
|
- rspec-core/benchmarks/call_v_yield.rb
|
124
167
|
- rspec-core/benchmarks/check_inclusion.rb
|
125
168
|
- rspec-core/benchmarks/define_method_v_attr_reader_v_def.rb
|
@@ -522,17 +565,186 @@ files:
|
|
522
565
|
- rspec-support/spec/spec_helper.rb
|
523
566
|
- rspec/lib/rspec.rb
|
524
567
|
- rspec/lib/rspec/version.rb
|
525
|
-
- spec/
|
526
|
-
- spec/
|
527
|
-
- spec/
|
528
|
-
- spec/
|
529
|
-
- spec/
|
530
|
-
- spec/
|
531
|
-
- spec/
|
532
|
-
- spec/
|
533
|
-
- spec/
|
534
|
-
- spec/
|
535
|
-
-
|
568
|
+
- spec/mri/integration/browser_spec.rb
|
569
|
+
- spec/mri/integration/rack/sprockets_runner_js_errors.rb.erb
|
570
|
+
- spec/mri/integration/spec_opts_spec.rb
|
571
|
+
- spec/mri/unit/opal/rspec/browser_formatter_spec.rb
|
572
|
+
- spec/mri/unit/opal/rspec/cached_environment_spec.rb
|
573
|
+
- spec/mri/unit/opal/rspec/opal/browser_formatter_spec.rb
|
574
|
+
- spec/mri/unit/opal/rspec/rack/config.ru
|
575
|
+
- spec/mri/unit/opal/rspec/rake_task_spec.rb
|
576
|
+
- spec/mri/unit/opal/rspec/sprockets_environment_spec.rb
|
577
|
+
- spec/mri/unit/opal/rspec/temp_dir_helper.rb
|
578
|
+
- spec/opal/after_hooks_spec.rb
|
579
|
+
- spec/opal/around_hooks_spec.rb
|
580
|
+
- spec/opal/async_spec.rb
|
581
|
+
- spec/opal/before_hooks_spec.rb
|
582
|
+
- spec/opal/example_spec.rb
|
583
|
+
- spec/opal/expected_failures.txt
|
584
|
+
- spec/opal/matchers_spec.rb
|
585
|
+
- spec/opal/mock_spec.rb
|
586
|
+
- spec/opal/should_syntax_spec.rb
|
587
|
+
- spec/opal/skip_pending_spec.rb
|
588
|
+
- spec/opal/subject_spec.rb
|
589
|
+
- spec/other/color_on_by_default_spec.rb
|
590
|
+
- spec/other/dummy_spec.rb
|
591
|
+
- spec/other/formatter_dependency.rb
|
592
|
+
- spec/other/ignored_spec.opal
|
593
|
+
- spec/other/test_formatter.rb
|
594
|
+
- spec/rspec/core/config.rb
|
595
|
+
- spec/rspec/core/config.ru
|
596
|
+
- spec/rspec/core/core_spec_loader.rb
|
597
|
+
- spec/rspec/core/filter/core/async/example_group.txt
|
598
|
+
- spec/rspec/core/filter/core/async/hooks.rb
|
599
|
+
- spec/rspec/core/filter/core/async/memoized_helpers.txt
|
600
|
+
- spec/rspec/core/filter/core/async/metadata.txt
|
601
|
+
- spec/rspec/core/filter/core/bugs/filter_manager.txt
|
602
|
+
- spec/rspec/core/filter/core/bugs/formatters.txt
|
603
|
+
- spec/rspec/core/filter/core/bugs/memoized_helpers.rb
|
604
|
+
- spec/rspec/core/filter/core/bugs/metadata.txt
|
605
|
+
- spec/rspec/core/filter/core/bugs/sandbox/subject_issue_test.rb
|
606
|
+
- spec/rspec/core/filter/core/bugs/warnings_deprecations.txt
|
607
|
+
- spec/rspec/core/filter/core/unsupported/core.txt
|
608
|
+
- spec/rspec/core/filter/core/unsupported/example.txt
|
609
|
+
- spec/rspec/core/filter/core/unsupported/example_group.txt
|
610
|
+
- spec/rspec/core/filter/core/unsupported/filter_manager.txt
|
611
|
+
- spec/rspec/core/filter/core/unsupported/formatters.txt
|
612
|
+
- spec/rspec/core/filter/core/unsupported/hooks.txt
|
613
|
+
- spec/rspec/core/filter/core/unsupported/memoized_helpers.txt
|
614
|
+
- spec/rspec/core/filter/core/unsupported/metadata.txt
|
615
|
+
- spec/rspec/core/filter/core/unsupported/metadata_filter.txt
|
616
|
+
- spec/rspec/core/filter/core/unsupported/notifications.txt
|
617
|
+
- spec/rspec/core/filter/core/unsupported/world.txt
|
618
|
+
- spec/rspec/core/fixes/missing_constants.rb
|
619
|
+
- spec/rspec/core/fixes/opal_itself.rb
|
620
|
+
- spec/rspec/core/fixes/shared_examples.rb
|
621
|
+
- spec/rspec/core/opal_alternates/rspec/core/example_group_spec.rb
|
622
|
+
- spec/rspec/core/opal_alternates/rspec/core/failed_example_notification_spec.rb
|
623
|
+
- spec/rspec/core/opal_alternates/rspec/core/hooks_spec.rb
|
624
|
+
- spec/rspec/core/opal_alternates/rspec/core/memoized_helpers_spec.rb
|
625
|
+
- spec/rspec/core/opal_alternates/rspec/core/metadata_spec.rb
|
626
|
+
- spec/rspec/core/require_specs.rb
|
627
|
+
- spec/rspec/core/sandboxing.rb
|
628
|
+
- spec/rspec/core/spec_files_exclude.txt
|
629
|
+
- spec/rspec/expectations/config.rb
|
630
|
+
- spec/rspec/expectations/config.ru
|
631
|
+
- spec/rspec/expectations/expectation_spec_loader.rb
|
632
|
+
- spec/rspec/expectations/filter/bugs/aliased_matcher.txt
|
633
|
+
- spec/rspec/expectations/filter/bugs/aliases.rb
|
634
|
+
- spec/rspec/expectations/filter/bugs/base_matcher.txt
|
635
|
+
- spec/rspec/expectations/filter/bugs/be.rb
|
636
|
+
- spec/rspec/expectations/filter/bugs/be_instance_of.rb
|
637
|
+
- spec/rspec/expectations/filter/bugs/be_spec.txt
|
638
|
+
- spec/rspec/expectations/filter/bugs/configuration.txt
|
639
|
+
- spec/rspec/expectations/filter/bugs/contain_exactly.rb
|
640
|
+
- spec/rspec/expectations/filter/bugs/define_negated_matcher.rb
|
641
|
+
- spec/rspec/expectations/filter/bugs/description_generation.rb
|
642
|
+
- spec/rspec/expectations/filter/bugs/dsl.txt
|
643
|
+
- spec/rspec/expectations/filter/bugs/equal.txt
|
644
|
+
- spec/rspec/expectations/filter/bugs/expectation_target.txt
|
645
|
+
- spec/rspec/expectations/filter/bugs/expectations.txt
|
646
|
+
- spec/rspec/expectations/filter/bugs/have_attributes.rb
|
647
|
+
- spec/rspec/expectations/filter/bugs/include.rb
|
648
|
+
- spec/rspec/expectations/filter/bugs/operators.txt
|
649
|
+
- spec/rspec/expectations/filter/bugs/raise_error.txt
|
650
|
+
- spec/rspec/expectations/filter/bugs/respond_to.rb
|
651
|
+
- spec/rspec/expectations/filter/bugs/sandbox/undef.rb
|
652
|
+
- spec/rspec/expectations/filter/unsupported/aliases.txt
|
653
|
+
- spec/rspec/expectations/filter/unsupported/be.txt
|
654
|
+
- spec/rspec/expectations/filter/unsupported/be_instance_of.txt
|
655
|
+
- spec/rspec/expectations/filter/unsupported/change.txt
|
656
|
+
- spec/rspec/expectations/filter/unsupported/configuration.txt
|
657
|
+
- spec/rspec/expectations/filter/unsupported/contain_exactly.txt
|
658
|
+
- spec/rspec/expectations/filter/unsupported/description_generation.txt
|
659
|
+
- spec/rspec/expectations/filter/unsupported/dsl.txt
|
660
|
+
- spec/rspec/expectations/filter/unsupported/eq.txt
|
661
|
+
- spec/rspec/expectations/filter/unsupported/equal.txt
|
662
|
+
- spec/rspec/expectations/filter/unsupported/expectation_target.txt
|
663
|
+
- spec/rspec/expectations/filter/unsupported/expectations.txt
|
664
|
+
- spec/rspec/expectations/filter/unsupported/has.txt
|
665
|
+
- spec/rspec/expectations/filter/unsupported/include.txt
|
666
|
+
- spec/rspec/expectations/filter/unsupported/match.txt
|
667
|
+
- spec/rspec/expectations/filter/unsupported/matchers.txt
|
668
|
+
- spec/rspec/expectations/filter/unsupported/output.txt
|
669
|
+
- spec/rspec/expectations/filter/unsupported/raise_error.txt
|
670
|
+
- spec/rspec/expectations/filter/unsupported/respond_to.rb
|
671
|
+
- spec/rspec/expectations/filter/unsupported/syntax.txt
|
672
|
+
- spec/rspec/expectations/filter/unsupported/yield.txt
|
673
|
+
- spec/rspec/expectations/fixes/example_patches.rb
|
674
|
+
- spec/rspec/expectations/fixes/missing_constants.rb
|
675
|
+
- spec/rspec/expectations/fixes/not_compatible.rb
|
676
|
+
- spec/rspec/expectations/fixes/opal_itself.rb
|
677
|
+
- spec/rspec/expectations/opal_alternates/be_instance_of_spec.rb
|
678
|
+
- spec/rspec/expectations/opal_alternates/dsl_spec.rb
|
679
|
+
- spec/rspec/expectations/opal_alternates/expectation_target_spec.rb
|
680
|
+
- spec/rspec/expectations/opal_alternates/yield_spec.rb
|
681
|
+
- spec/rspec/expectations/require_specs.rb
|
682
|
+
- spec/rspec/expectations/shared_examples.rb
|
683
|
+
- spec/rspec/expectations/spec_files_exclude.txt
|
684
|
+
- spec/rspec/expectations/spec_helper_opal.rb
|
685
|
+
- spec/rspec/filter_processor.rb
|
686
|
+
- spec/rspec/mocks/config.ru
|
687
|
+
- spec/rspec/mocks/filter/bugs/and_call_original.txt
|
688
|
+
- spec/rspec/mocks/filter/bugs/and_wrap_original.txt
|
689
|
+
- spec/rspec/mocks/filter/bugs/any_instance.rb
|
690
|
+
- spec/rspec/mocks/filter/bugs/argument_matchers.rb
|
691
|
+
- spec/rspec/mocks/filter/bugs/configuration.txt
|
692
|
+
- spec/rspec/mocks/filter/bugs/double.txt
|
693
|
+
- spec/rspec/mocks/filter/bugs/expiration.txt
|
694
|
+
- spec/rspec/mocks/filter/bugs/instance_method_stasher.txt
|
695
|
+
- spec/rspec/mocks/filter/bugs/methods.rb
|
696
|
+
- spec/rspec/mocks/filter/bugs/mocks.txt
|
697
|
+
- spec/rspec/mocks/filter/bugs/mutate_const.txt
|
698
|
+
- spec/rspec/mocks/filter/bugs/partial_double.rb
|
699
|
+
- spec/rspec/mocks/filter/bugs/receive.txt
|
700
|
+
- spec/rspec/mocks/filter/bugs/should_syntax.txt
|
701
|
+
- spec/rspec/mocks/filter/bugs/space.txt
|
702
|
+
- spec/rspec/mocks/filter/bugs/spy.txt
|
703
|
+
- spec/rspec/mocks/filter/bugs/stub_implementation.rb
|
704
|
+
- spec/rspec/mocks/filter/unsupported/and_call_original.txt
|
705
|
+
- spec/rspec/mocks/filter/unsupported/and_return.txt
|
706
|
+
- spec/rspec/mocks/filter/unsupported/any_instance.rb
|
707
|
+
- spec/rspec/mocks/filter/unsupported/argument_matchers.rb
|
708
|
+
- spec/rspec/mocks/filter/unsupported/combining_implementation_instructions.rb
|
709
|
+
- spec/rspec/mocks/filter/unsupported/double.rb
|
710
|
+
- spec/rspec/mocks/filter/unsupported/expected_arg_verification.txt
|
711
|
+
- spec/rspec/mocks/filter/unsupported/have_received.txt
|
712
|
+
- spec/rspec/mocks/filter/unsupported/instance_double_with_class_loaded.txt
|
713
|
+
- spec/rspec/mocks/filter/unsupported/mocks.rb
|
714
|
+
- spec/rspec/mocks/filter/unsupported/nil_expectation_warning.rb
|
715
|
+
- spec/rspec/mocks/filter/unsupported/partial_double.rb
|
716
|
+
- spec/rspec/mocks/filter/unsupported/receive.txt
|
717
|
+
- spec/rspec/mocks/filter/unsupported/receive_message_chain.rb
|
718
|
+
- spec/rspec/mocks/filter/unsupported/receive_messages.txt
|
719
|
+
- spec/rspec/mocks/filter/unsupported/should_syntax.txt
|
720
|
+
- spec/rspec/mocks/filter/unsupported/space.rb
|
721
|
+
- spec/rspec/mocks/filter/unsupported/stub.rb
|
722
|
+
- spec/rspec/mocks/fixes/doubled_classes.rb
|
723
|
+
- spec/rspec/mocks/fixes/missing_constants.rb
|
724
|
+
- spec/rspec/mocks/fixes/opal_itself.rb
|
725
|
+
- spec/rspec/mocks/mocks_spec_loader.rb
|
726
|
+
- spec/rspec/mocks/require_specs.rb
|
727
|
+
- spec/rspec/mocks/spec_files_exclude.txt
|
728
|
+
- spec/rspec/mocks/spec_helper_opal.rb
|
729
|
+
- spec/rspec/opal_rspec_spec_loader.rb
|
730
|
+
- spec/rspec/shared/opal/fixes/deprecation_helpers.rb
|
731
|
+
- spec/rspec/shared/opal/fixes/rspec_helpers.rb
|
732
|
+
- spec/rspec/shared/opal/progress_json_formatter.rb
|
733
|
+
- spec/rspec/support/config.rb
|
734
|
+
- spec/rspec/support/config.ru
|
735
|
+
- spec/rspec/support/filter/bugs/recursive_const_methods.txt
|
736
|
+
- spec/rspec/support/filter/bugs/sandbox/basic_object.rb
|
737
|
+
- spec/rspec/support/filter/bugs/stderr_splitter_spec.txt
|
738
|
+
- spec/rspec/support/filter/bugs/support.txt
|
739
|
+
- spec/rspec/support/filter/unsupported/fuzzy_matcher.txt
|
740
|
+
- spec/rspec/support/filter/unsupported/support.rb
|
741
|
+
- spec/rspec/support/filter/unsupported/warnings.txt
|
742
|
+
- spec/rspec/support/fixes/missing_constants.rb
|
743
|
+
- spec/rspec/support/fixes/opal_itself.rb
|
744
|
+
- spec/rspec/support/require_specs.rb
|
745
|
+
- spec/rspec/support/spec_files_exclude.txt
|
746
|
+
- spec/rspec/support/spec_helper.rb
|
747
|
+
- spec/rspec/support/support_spec_loader.rb
|
536
748
|
- util/create_requires.rb
|
537
749
|
- vendor/spec_runner.js
|
538
750
|
homepage: http://opalrb.org
|
@@ -554,7 +766,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
554
766
|
version: 1.3.1
|
555
767
|
requirements: []
|
556
768
|
rubyforge_project:
|
557
|
-
rubygems_version: 2.4.
|
769
|
+
rubygems_version: 2.4.5.1
|
558
770
|
signing_key:
|
559
771
|
specification_version: 4
|
560
772
|
summary: RSpec for Opal
|