open source e ruby on rails - flisol 2013

Post on 19-Jan-2015

81 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

FLISOL 2013 - CEUNSP Salto-SP

TRANSCRIPT

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 :)

top related