28 May 2014
class ThisWednesday
include Week
def learn_encapsulation
true
end
end
Read more...
27 May 2014
class Player
def initialize
@knows_about_classes = false
end
def after_this_tuesday
@knows_about_classes = true
end
end
Read more...
23 May 2014
def week_end(day)
case "wednesday" then "Two days left"
case "thursday" then "One day left"
case "friday" then "WEEKEND, LADS."
end
Read more...
22 May 2014
require 'understanding of mocks'
describe 'trying to catch stdin - stdout' do
it 'did not happen' do
expect(STDIN).to receive(:gets).and_return("FALSE\n")
end
end
Read more...
21 May 2014
require 'half an hour of time to blog'
describe 'trying to find time' do
it 'while testing methods' do
expect(find_ten_minutes_today).to be_false
end
end
Read more...