Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Clean up formatting for Relish #173

Merged
merged 1 commit into from

3 participants

@jredville

I noticed that the code was not properly formatting for these files, so I updated them. I don't know how to test Relish's rendering, so this is a "best guess" :(. If you have information on how to preview on Relish, I'm happy to verify.

@travisbot

This pull request passes (merged df607ea into 37e095c).

@alindeman alindeman merged commit bb21bc1 into rspec:master

1 check passed

Details default The Travis build passed
@alindeman
Collaborator

Thank you for your contribution! I don't know how to test it either, but it looks reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 10, 2012
  1. @jredville

    fix formatting for relish

    jredville authored
This page is out of date. Refresh to see the latest.
View
20 features/argument_matchers/README.md
@@ -4,20 +4,20 @@ Argument matchers can be used:
* In stubs to constrain the scope of the stubbed method
- obj.stub(:foo).with(:bar) do |arg|
- #do something for :bar
- end
- obj.stub(:foo).with(:baz) do |arg|
- #do something for :baz
- end
+ obj.stub(:foo).with(:bar) do |arg|
+ #do something for :bar
+ end
+ obj.stub(:foo).with(:baz) do |arg|
+ #do something for :baz
+ end
* In expectations to validate the arguments that should be received in a method call
- #create a double
- obj = double()
+ #create a double
+ obj = double()
- #expect a message with given args
- obj.should_receive(:message).with('an argument')
+ #expect a message with given args
+ obj.should_receive(:message).with('an argument')
If more control is needed, one can use a block
View
4 features/argument_matchers/type_matchers.feature
@@ -1,6 +1,8 @@
Feature: stub with argument constraints
- You can further specify the behavior by constraining the type, format and/or number of arguments with the #with() method chained off of #stub()
+ You can further specify the behavior by constraining the type,
+ format and/or number of arguments with the `#with()` method
+ chained off of `#stub()`
Scenario: an_instance_of argument matcher
Given a file named "stub_an_instance_of_args_spec.rb" with:
Something went wrong with that request. Please try again.