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

Handle keyword arguments #18

Open
benjaminwood opened this issue Oct 2, 2018 · 1 comment
Open

Handle keyword arguments #18

benjaminwood opened this issue Oct 2, 2018 · 1 comment
Assignees

Comments

@benjaminwood
Copy link
Member

Given this method:

def foo(bar: true)

end

This spec will be generated.

describe '#foo' do
  it 'foo' do
    bar:true = double('bar:true')
    result = object.foo(bar:true)

    expect(result).not_to be_nil
  end
end

Obviously the spec will cause a syntax error.

@tjchambers
Copy link
Collaborator

yup - that ain't the only one. Wait till you run across a splat operator.

@tjchambers tjchambers self-assigned this Aug 15, 2022
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

2 participants