Mike Cohn
Plans help to guide investment decisions (this project is worth to begin?), know who needs to be available to work on a project during a given period and know if a project is on track.
class Carrinho | |
attr_reader :pedidos | |
def initialize(args) | |
@pedido_class = args[:pedido_class] | |
@pedidos = [] | |
end | |
def adicionar(produto) | |
@pedidos << @pedido_class.new(produto) | |
end |
# -*- encoding : utf-8 -*- | |
# | |
# Rodrigo Soares Manhães, professor homenageado pelos formandos da turma de 2007 | |
# do curso de Ciência da Computação da UENF. | |
# | |
# 20/09/2012 | |
# | |
## | |
class Aluno < ActiveRecord::Base |
pt-BR: | |
will_paginate: | |
previous_label: "← Anterior" | |
next_label: "Próximo →" | |
page_gap: "…" | |
page_entries_info: | |
single_page_html: | |
zero: "Nenhum registro encontrado" | |
one: "Apenas 1 registro encontrado" | |
other: "Mostrando todos os %{count} registros encontrados" |
The purpose of design is to allow you to do design later, and it's primary goal is to reduce the cost of change.
describe 'Expectation Matchers' do | |
describe 'equivalence matchers' do | |
it 'will match loose equality with #eq' do | |
a = "2 cats" | |
b = "2 cats" | |
expect(a).to eq(b) | |
expect(a).to be == b # synonym for #eq |
# Sample reference code for doubles/mocks, stubs, and spies in RSpec | |
# Taken from Kevin Skoglund's RSpec tutorial on Lynda.com | |
describe 'Doubles' do | |
it "allows stubbing methods" do | |
dbl = double("Chant") | |
allow(dbl).to receive(:hey!) | |
expect(dbl).to respond_to(:hey!) | |
end |
use must for positive expectations and wont for negative expectations.