Skip to content

Instantly share code, notes, and snippets.

View tarvaina's full-sized avatar

Antti Tarvainen tarvaina

View GitHub Profile
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
def mock_poem(stubs={})
@mock_poem ||= mock_model(Poem, stubs)
end
describe PoemsController do
when_it "responds to GET index" do
get :index
end
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
def mock_poem(stubs={})
@mock_poem ||= mock_model(Poem, stubs)
end
describe PoemsController do
when_it "responds to GET index" do
get :index
end
require 'rack/request'
require 'rack/response'
module Anttis
class Flipper
def initialize(app)
@app = app
end
def call(env)
@tarvaina
tarvaina / Henri Kivioja.md
Created March 18, 2012 07:35
Notes from Agile Riga Day

Henri Kivioja: How to coach traditional managers to lean and agile

Why change?

  • Create most value
  • Improve responsiveness
  • Build quality in
@tarvaina
tarvaina / _.md
Created August 1, 2013 08:21
Color practice
@tarvaina
tarvaina / _.md
Created August 1, 2013 09:20
Text alignment practice
@tarvaina
tarvaina / _.md
Created August 1, 2013 10:21
Line drawing practice
@tarvaina
tarvaina / _.md
Created August 1, 2013 12:37
Transition practice
@tarvaina
tarvaina / _.md
Created August 1, 2013 13:39
Stacked bars practice
@tarvaina
tarvaina / _.md
Created August 1, 2013 14:11
MoveToFront practice