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

Stubbing instructions not properly formatted #17

Open
taylorfinnell opened this issue Jul 21, 2017 · 1 comment
Open

Stubbing instructions not properly formatted #17

taylorfinnell opened this issue Jul 21, 2017 · 1 comment

Comments

@taylorfinnell
Copy link

taylorfinnell commented Jul 21, 2017

An unregistered request might returns something like

You can stub this request with the following snippet:

       WebMock.stub(:get, "http://s3.amazonaws.com/?").
         to_return(body: "")

However if you run crystal tool format on the suggested WebMock call above it gets reformatted. The dot is moved to the same line as to_return, etc.

Should the stubbing instructions that are output be formatted differently? If so I can make a PR.

Thanks!

@mverzilli
Copy link

@taylorfinnell thanks for noting that! Yeah, I think that makes sense, if you can send a PR that would be nice. Thank you!

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