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

Add examples for one-liner syntax #10

Closed
wants to merge 1 commit into from

Conversation

wasnotrice
Copy link

RSpec's "is_expected" syntax isn't currently supported. The one-liner "should" syntax seems to be supported, but isn't included in the specs. This pull request adds specs for both one-liner styles.

  • "should" syntax passes
  • "is_expected" syntax fails
$ bundle exec rake

Failures:


  1) one-liner syntax is_expected
     NoMethodError:
       undefined method `is_expected' for #<RSpec::ExampleGroups::OneLinerSyntax::IsExpected:1325>


  2) one-liner syntax is_expected
     NoMethodError:
       undefined method `is_expected' for #<RSpec::ExampleGroups::OneLinerSyntax::IsExpected:1333>

63 examples, 2 failures (time taken: 1.101)

I'd love to add this feature, but I'm having trouble tracing the root issue. The is_expected method seems to be defined in the same file as should.

Any advice on how to approach this?

- "should" syntax passes
- "is_expected" syntax fails
@adambeynon
Copy link
Contributor

This is now fixed on master (via a slight temporary work around).

@adambeynon adambeynon closed this Nov 1, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants