Skip to content

Instantly share code, notes, and snippets.

View rafadc's full-sized avatar
💭
Birp 🦉

Rafa de Castro rafadc

💭
Birp 🦉
View GitHub Profile
### 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:
class CreatePeople < ActiveRecord::Migration
def change
create_table :people do |t|
t.string :name
t.timestamps null: false
end
end
end
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