This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_when_success_with_nothing_to_chain | |
myObject = mock() | |
myObject.expects(:method).once.returns(nil) | |
myObject.expects(:method_to_be_called).once | |
When.success{myObject.method}.then_call{myObject.method_to_be_called}.as_a_chain | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CreatePeople < ActiveRecord::Migration | |
def change | |
create_table :people do |t| | |
t.string :name | |
t.timestamps null: false | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am rafadc on github. | |
* I am rafadc (https://keybase.io/rafadc) on keybase. | |
* I have a public key ASDtXznjwCABbau0P9hYeDUJeqzPCQQUHnuVKRadf0COsgo | |
To claim this, I am signing this object: |