Public Gists by dchelimsky

Gravatar
Thu Nov 05 13:41:47 -0800 2009
1
2
3
Feature: Marking a guess
  In order to get more information about the secret code
  As a code breaker
Gravatar
Sat Oct 31 15:53:34 -0700 2009
1
2
3
module Codebreaker
  class Marker
 
Gravatar
Wed Oct 21 08:44:04 -0700 2009
1
2
3
# == Schema Information
#
# Table name: users
Gravatar
Fri Sep 18 15:12:23 -0700 2009
1
2
3
module ResultCaching
  def with_result_caching
    begin
Gravatar
Fri Sep 18 14:33:10 -0700 2009
1
2
3
  def summer_monthly_usage
    @summer_monthly_usage ||= rates.summer_months_nbr.inject(0) { |sum, m| sum + monthly_usage[m - 1] }
  end
Gravatar
Tue Sep 15 05:29:26 -0700 2009
1
2
3
# all of these variations will pass the accompanying spec using stubble
 
class ThingsController
Gravatar
Wed Sep 09 20:00:38 -0700 2009
1
2
3
# how do I test this elegantly?
 
class Request < ActiveRecord::Base
Gravatar
Sun Aug 16 06:40:29 -0700 2009
1
2
3
class Game
 
  attr_reader :teams
Gravatar
Fri Jul 31 03:35:15 -0700 2009
1
2
3
Scenario "has three steps" do
  Given "one" do
 
Gravatar
Tue Jul 21 02:46:36 -0700 2009
1
2
3
class Thing
  def self.find_something(inputs)
    # .. do stuff here
Gravatar
Tue Jul 14 21:29:25 -0700 2009
1
2
3
1)
Test::Unit::AssertionFailedError in 'A controller example running in integration mode support custom routes'
The generated path <"/custom_route_spec/custom_route"> did not match <"/custom_route">
Gravatar
Tue Jul 14 05:01:38 -0700 2009
1
2
3
[david: third_rails (exp)]$ cd vendor/rails/railties/
[david: railties (925c910...)]$ rake
(in /Users/david/projects/ruby/third_rails/vendor/rails/railties)
Gravatar
Tue Jul 14 04:16:47 -0700 2009
1
2
3
  config.generators do |g|
    g.orm :datamapper do |dm|
      dm.timestamps = true
Gravatar
Tue Jun 23 21:42:40 -0700 2009
1
2
3
1)
Test::Unit::AssertionFailedError in 'A controller example running in integration mode support custom routes'
The generated path <"/custom_route_spec/custom_route"> did not match <"/custom_route">
Gravatar
Wed Jun 17 08:19:29 -0700 2009
1
2
3
describe Customer, "last billing address" do
  before do
    @customer = Customer.generate!
Gravatar
Wed May 13 23:21:54 -0700 2009
1
2
3
describe Scorecard::Score::BusinessCapacityScore,"benchmark" do
  
  before do
Gravatar
Tue May 12 12:56:25 -0700 2009
1
2
3
import flash.events.*;
import flash.net.URLRequest;
import flash.display.Loader;
Gravatar
Mon May 11 18:52:17 -0700 2009
1
2
3
import flash.utils.ByteArray;
import ru.inspirit.net.MultipartURLLoader;
 
Gravatar
Sat May 02 22:15:49 -0700 2009
1
2
3
#These all pass the specs in post_create_with_stubble_spec.rb
 
  def create
Gravatar
Tue Apr 28 06:24:17 -0700 2009
1
2
3
# excerpted from spec/spec/matchers/raise_error_spec.rb
 
  it "passes the error to the block" do