Skip to content

Failure message appears to contradict itself #18

Description

@davidimoore

Describe the problem

When executing a spec using the power matcher I receive an error that appears to be contradictory.

Steps to reproduce the problem

Create a spec that uses the perform_power matcher.

Your code here to reproduce the issue

      it "tests complexity" do
        expect{request}.to perform_power
      end

Actual behaviour

What happened? This could be a description, log output, error raised etc.

     Failure/Error: expect{request}.to perform_power
       expected block to perform power, but performed power

Expected behaviour

What did you expect to happen?
A passing test or a failing test stating the request did not perform power

Describe your environment

  • OS version: macOS Big Sur 11.6
  • Ruby version: 2.7.4
  • RSpec::Benchmark version: rspec-benchmark (0.6.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions