Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test suite failures #57

Open
Apteryks opened this issue Jul 14, 2020 · 1 comment
Open

Test suite failures #57

Apteryks opened this issue Jul 14, 2020 · 1 comment

Comments

@Apteryks
Copy link

Hello,

Running the rspec tests, I'm getting the four (4) following failures:

starting phase `check'
rspec spec
Running specs
....................................................................................................WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #<StandardError: Oops>. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /gnu/store/32wr1cvwv4dx39wga2zl4lg5x1w1g1ld-ruby-given-core-3.8.0/lib/ruby/vendor_ruby/gems/given_core-3.8.0/lib/given/rspec/monkey.rb:21:in `handle_matcher'.
...................................................WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #<RuntimeError: Ouch>. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /gnu/store/32wr1cvwv4dx39wga2zl4lg5x1w1g1ld-ruby-given-core-3.8.0/lib/ruby/vendor_ruby/gems/given_core-3.8.0/lib/given/rspec/monkey.rb:21:in `handle_matcher'.
.......*...............................FFFF.............................................................

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) #have_failed with a pending invocation       Then { Given.fail_with "This example should have been regarded as pending" }

     # Forcing a pending in example ... please ignore
     Failure/Error: Then { Given.fail_with "This example should have been regarded as pending" }
       This example should have been regarded as pending
     # ./spec/lib/given/have_failed_spec.rb:54:in `block (3 levels) in <module:HaveFailedSpec>'
     # ./spec/lib/given/have_failed_spec.rb:54:in `block in Then'

Failures:

  1) Given::NaturalAssertion failure messages with equals assertion with do/end       Then { expect(msg).to match(/\bexpected: +1\b/) }

     Failure/Error: let(:msg) { na.message }

     Given::InvalidThenError:
       Multiple statements in Then block at /tmp/guix-build-ruby-rspec-given-3.8.0.drv-0/gem/spec/lib/given/natural_assertion_spec.rb:66
        do a == 2; end
     # ./spec/lib/given/natural_assertion_spec.rb:52:in `block (3 levels) in <top (required)>'
     # ./spec/lib/given/natural_assertion_spec.rb:53:in `block (3 levels) in <top (required)>'
     # ./spec/lib/given/natural_assertion_spec.rb:67:in `block in Then'

  2) Given::NaturalAssertion failure messages with equals assertion with do/end       Then { expect(msg).to match(/\bto equal: +2\b/) }

     Failure/Error: let(:msg) { na.message }

     Given::InvalidThenError:
       Multiple statements in Then block at /tmp/guix-build-ruby-rspec-given-3.8.0.drv-0/gem/spec/lib/given/natural_assertion_spec.rb:66
        do a == 2; end
     # ./spec/lib/given/natural_assertion_spec.rb:52:in `block (3 levels) in <top (required)>'
     # ./spec/lib/given/natural_assertion_spec.rb:53:in `block (3 levels) in <top (required)>'
     # ./spec/lib/given/natural_assertion_spec.rb:68:in `block in Then'

  3) Given::NaturalAssertion failure messages with equals assertion with do/end       Then { expect(msg).to match(/\bfalse +<- +a == 2\b/) }

     Failure/Error: let(:msg) { na.message }

     Given::InvalidThenError:
       Multiple statements in Then block at /tmp/guix-build-ruby-rspec-given-3.8.0.drv-0/gem/spec/lib/given/natural_assertion_spec.rb:66
        do a == 2; end
     # ./spec/lib/given/natural_assertion_spec.rb:52:in `block (3 levels) in <top (required)>'
     # ./spec/lib/given/natural_assertion_spec.rb:53:in `block (3 levels) in <top (required)>'
     # ./spec/lib/given/natural_assertion_spec.rb:69:in `block in Then'

  4) Given::NaturalAssertion failure messages with equals assertion with do/end       Then { expect(msg).to match(/\b1 +<- +a\b/) }

     Failure/Error: let(:msg) { na.message }

     Given::InvalidThenError:
       Multiple statements in Then block at /tmp/guix-build-ruby-rspec-given-3.8.0.drv-0/gem/spec/lib/given/natural_assertion_spec.rb:66
        do a == 2; end
     # ./spec/lib/given/natural_assertion_spec.rb:52:in `block (3 levels) in <top (required)>'
     # ./spec/lib/given/natural_assertion_spec.rb:53:in `block (3 levels) in <top (required)>'
     # ./spec/lib/given/natural_assertion_spec.rb:70:in `block in Then'

Finished in 0.13803 seconds (files took 0.32973 seconds to load)
255 examples, 4 failures, 1 pending

Failed examples:

rspec ./spec/lib/given/natural_assertion_spec.rb:67 # Given::NaturalAssertion failure messages with equals assertion with do/end       Then { expect(msg).to match(/\bexpected: +1\b/) }

rspec ./spec/lib/given/natural_assertion_spec.rb:68 # Given::NaturalAssertion failure messages with equals assertion with do/end       Then { expect(msg).to match(/\bto equal: +2\b/) }

rspec ./spec/lib/given/natural_assertion_spec.rb:69 # Given::NaturalAssertion failure messages with equals assertion with do/end       Then { expect(msg).to match(/\bfalse +<- +a == 2\b/) }

rspec ./spec/lib/given/natural_assertion_spec.rb:70 # Given::NaturalAssertion failure messages with equals assertion with do/end       Then { expect(msg).to match(/\b1 +<- +a\b/) }

I'm using the 3.8.0 gem release, with some patching otherwise the tests fail trying to load ./lib/given/* files which do not exist in the gem release.

The GEM_PATH is set to: environment variable GEM_PATH' set to /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/vendor_ruby:/gnu/store/0hlivkh2fhr6198drvz6fv0cyifa8js2-ruby-rspec-3.8.0/lib/ruby/vendor_ruby:/gnu/store/32wr1cvwv4dx39wga2zl4lg5x1w1g1ld-ruby-given-core-3.8.0/lib/ruby/vendor_ruby:/gnu/store/2m96b69lwiqnj5l989v8qawxzlbjgv4a-ruby-rspec-expectations-3.8.2/lib/ruby/vendor_ruby:/gnu/store/zlyg13d32zc5zlh9ml92xgalakfmli3s-ruby-rspec-mocks-3.8.0/lib/ruby/vendor_ruby:/gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby:/gnu/store/ikknwc1m7fkyh28wfihcfcqisn8d31dq-ruby-sorcerer-2.0.1/lib/ruby/vendor_ruby:/gnu/store/bh3mf0yg7y62p5r84f7n2q28cm4a86ma-ruby-diff-lcs-1.3/lib/ruby/vendor_ruby:/gnu/store/wq9l3yhxnhryvx6yrbzqz573dv6d3828-ruby-rspec-support-3.8.0/lib/ruby/vendor_ruby'

@Apteryks
Copy link
Author

After patching the Rakefile included so that rspec runs with the -Ilib:examples argument (otherwise I'd get errors about not finding example_helper), and getting rid of the above test file, I got 4 more failures:

rspec -Ilib:examples spec
Running specs
....................................................................................................WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #<StandardError: Oops>. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /gnu/store/32wr1cvwv4dx39wga2zl4lg5x1w1g1ld-ruby-given-core-3.8.0/lib/ruby/vendor_ruby/gems/given_core-3.8.0/lib/given/rspec/monkey.rb:21:in `handle_matcher'.
...................................................WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #<RuntimeError: Ouch>. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /gnu/store/32wr1cvwv4dx39wga2zl4lg5x1w1g1ld-ruby-given-core-3.8.0/lib/ruby/vendor_ruby/gems/given_core-3.8.0/lib/given/rspec/monkey.rb:21:in `handle_matcher'.
.......*..........................................

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) #have_failed with a pending invocation       Then { Given.fail_with "This example should have been regarded as pending" }

     # Forcing a pending in example ... please ignore
     Failure/Error: Then { Given.fail_with "This example should have been regarded as pending" }
       This example should have been regarded as pending
     # ./spec/lib/given/have_failed_spec.rb:54:in `block (3 levels) in <module:HaveFailedSpec>'
     # ./spec/lib/given/have_failed_spec.rb:54:in `block in Then'

Finished in 0.1063 seconds (files took 0.29566 seconds to load)
201 examples, 0 failures, 1 pending

rspec -Ilib:examples examples/integration/and_spec.rb examples/integration/failing_messages_spec.rb examples/integration/focused_line_spec.rb examples/integration/given_spec.rb examples/integration/invariant_spec.rb examples/integration/then_spec.rb examples/stack/stack_spec.rb examples/use_assertions.rb
Running examples (with RSpec2)
.......FFFF...........................

Failures:

  1) Failing Messages when referencing undefined methods     Then { ios.err == "" }

     Failure/Error: Then { ios.err == "" }

       And expression failed at /tmp/guix-build-ruby-rspec-given-3.8.0.drv-0/gem/examples/integration/failing_messages_spec.rb:29
       Failing expression: And { complains_xyz_is_not_in_scope?(ios.out) }
         false   <- complains_xyz_is_not_in_scope?(ios.out)
         "\nAn error occurred while loading example_helper.\nFailure/Error: return gem_original_require(path)\n\nLoadError:\n  cannot load such file -- example_helper\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:2034:in `load_file_handling_errors'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `block in requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:113:in `block in process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:22:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:127:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby- (...truncated...)
                 <- ios.out
         #<struct IOS out="\nAn error occurred while loading example_helper.\nFailure/Error: return gem_original_require(path)\n\nLoadError:\n  cannot load such file -- example_helper\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:2034:in `load_file_handling_errors'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `block in requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:113:in `block in process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:22:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:127:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixb (...truncated...)
                 <- ios
     # ./examples/integration/failing_messages_spec.rb:28:in `block in Then'

  2) Failing Messages when breaking down expressions     Then { ios.err == "" }

     Failure/Error: Then { ios.err == "" }

       And expression failed at /tmp/guix-build-ruby-rspec-given-3.8.0.drv-0/gem/examples/integration/failing_messages_spec.rb:45
       Failing expression: And  { ios.out =~ /false *<- array\[index\]\.upcase == value$/ }
       expected: "\nAn error occurred while loading example_helper.\nFailure/Error: return gem_original_require(path)\n\nLoadError:\n  cannot load such file -- example_helper\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:2034:in `load_file_handling_errors'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `block in requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:113:in `block in process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:22:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:127:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby- (...truncated...)
       to match: /false *<- array\[index\]\.upcase == value$/
         nil   <- ios.out =~ /false *<- array\[index\]\.upcase == value$/
         "\nAn error occurred while loading example_helper.\nFailure/Error: return gem_original_require(path)\n\nLoadError:\n  cannot load such file -- example_helper\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:2034:in `load_file_handling_errors'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `block in requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:113:in `block in process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:22:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:127:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby- (...truncated...)
               <- ios.out
         #<struct IOS out="\nAn error occurred while loading example_helper.\nFailure/Error: return gem_original_require(path)\n\nLoadError:\n  cannot load such file -- example_helper\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:2034:in `load_file_handling_errors'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `block in requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:113:in `block in process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:22:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:127:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixb (...truncated...)
               <- ios
     # ./examples/integration/failing_messages_spec.rb:44:in `block in Then'

  3) Failing Messages when returning false from ToBool     Then { ios.out =~ /Failure\/Error: Then \{ ToBool.new \}/ }

     Failure/Error: Then { ios.out =~ /Failure\/Error: Then \{ ToBool.new \}/ }

       Then expression failed at /tmp/guix-build-ruby-rspec-given-3.8.0.drv-0/gem/examples/integration/failing_messages_spec.rb:55
       expected: "\nAn error occurred while loading example_helper.\nFailure/Error: return gem_original_require(path)\n\nLoadError:\n  cannot load such file -- example_helper\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:2034:in `load_file_handling_errors'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `block in requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:113:in `block in process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:22:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:127:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby- (...truncated...)
       to match: /Failure\/Error: Then \{ ToBool.new \}/
         nil   <- ios.out =~ /Failure\/Error: Then \{ ToBool.new \}/
         "\nAn error occurred while loading example_helper.\nFailure/Error: return gem_original_require(path)\n\nLoadError:\n  cannot load such file -- example_helper\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:2034:in `load_file_handling_errors'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `block in requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:113:in `block in process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:22:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:127:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby- (...truncated...)
               <- ios.out
         #<struct IOS out="\nAn error occurred while loading example_helper.\nFailure/Error: return gem_original_require(path)\n\nLoadError:\n  cannot load such file -- example_helper\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:2034:in `load_file_handling_errors'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `block in requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:113:in `block in process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:22:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:127:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixb (...truncated...)
               <- ios
     # ./examples/integration/failing_messages_spec.rb:55:in `block in Then'

  4) Failing Messages with an oddly formatted then     Then { ios.out =~ /Failure\/Error:\s*Then \{ result == \['a',$/ }

     Failure/Error: Then { ios.out =~ /Failure\/Error:\s*Then \{ result == \['a',$/ }

       Then expression failed at /tmp/guix-build-ruby-rspec-given-3.8.0.drv-0/gem/examples/integration/failing_messages_spec.rb:61
       expected: "\nAn error occurred while loading example_helper.\nFailure/Error: return gem_original_require(path)\n\nLoadError:\n  cannot load such file -- example_helper\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:2034:in `load_file_handling_errors'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `block in requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:113:in `block in process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:22:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:127:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby- (...truncated...)
       to match: /Failure\/Error:\s*Then \{ result == \['a',$/
         nil   <- ios.out =~ /Failure\/Error:\s*Then \{ result == \['a',$/
         "\nAn error occurred while loading example_helper.\nFailure/Error: return gem_original_require(path)\n\nLoadError:\n  cannot load such file -- example_helper\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:2034:in `load_file_handling_errors'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `block in requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:113:in `block in process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:22:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:127:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby- (...truncated...)
               <- ios.out
         #<struct IOS out="\nAn error occurred while loading example_helper.\nFailure/Error: return gem_original_require(path)\n\nLoadError:\n  cannot load such file -- example_helper\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/8ql9jjzl8q291ghsxlkm1wn5bpdvgcqw-ruby-2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:2034:in `load_file_handling_errors'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `block in requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb:1519:in `requires='\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:113:in `block in process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `each'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:112:in `process_options_into'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb:22:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixbvv6gb120j6b-ruby-rspec-core-3.8.0/lib/ruby/vendor_ruby/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb:127:in `configure'\n# /gnu/store/sxgvkvs1j9n2cbm5p3ixb (...truncated...)
               <- ios
     # ./examples/integration/failing_messages_spec.rb:61:in `block in Then'

Finished in 2.12 seconds (files took 0.22973 seconds to load)
38 examples, 4 failures

Failed examples:

rspec ./examples/integration/failing_messages_spec.rb:28 # Failing Messages when referencing undefined methods     Then { ios.err == "" }

rspec ./examples/integration/failing_messages_spec.rb:44 # Failing Messages when breaking down expressions     Then { ios.err == "" }

rspec ./examples/integration/failing_messages_spec.rb:55 # Failing Messages when returning false from ToBool     Then { ios.out =~ /Failure\/Error: Then \{ ToBool.new \}/ }

rspec ./examples/integration/failing_messages_spec.rb:61 # Failing Messages with an oddly formatted then     Then { ios.out =~ /Failure\/Error:\s*Then \{ result == \['a',$/ }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant