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

Inconvertible specs can be solved by including RSpec::Matchers in the appropriate context #15

Closed
myronmarston opened this issue Nov 4, 2013 · 1 comment

Comments

@myronmarston
Copy link

Your README mentions some things that can't be converted, because expect isn't available everywhere. For cases like these, the RSpec::Matchers module can be included or extended to make it available to that context.

For example, in the example in the README, this would work:

  class MyAwesomeTestRunner
    include RSpec::Matchers

    def run
      expect(1).to eq(1)
    end
  end
@yujinakayama
Copy link
Owner

Thanks. I'll add some descriptions to the README.

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

No branches or pull requests

2 participants