Date post: | 19-Jan-2015 |
Category: |
Technology |
Upload: | lucas-renan |
View: | 81 times |
Download: | 1 times |
flisol 2013
lucas renan
encyclopedia 95
freedom
productivity and happiness
2991 contributors
rails core team
josévalim
carlos antônio
rafael frança
~ 55k gems
rspec
describe Account do context "transfering money" do it "deposits transfer amount to the other account" do source = Account.new(50, :USD) target = mock('target account') target.should_receive(:deposit).with(Money.new(5, :USD)) source.transfer(5, :USD).to(target) end
it "reduces its balance by the transfer amount" do source = Account.new(50, :USD) target = stub('target account') source.transfer(5, :USD).to(target) source.balance.should == Money.new(45, :USD) end endend
automated deploy
$ cap deploy
success!
services
linus torvalds
certificationswho needs?
invitations
guru sorocaba
obrigado :)