Skip to content

Instantly share code, notes, and snippets.

View cmeiklejohn's full-sized avatar
💭
Always working.

Christopher S. Meiklejohn cmeiklejohn

💭
Always working.
View GitHub Profile
@cmeiklejohn
cmeiklejohn / Questions
Created August 9, 2011 00:52
Frozen Rails Give-away
Day job: Software Engineer at Swipely
Your Rails contributions (if any): Around six or so bug fixes to rails. Have also fixed bugs in a bunch of other gems. Recent contributor to rubygems.org.
What's your Ruby/Rails experience?: Been working with rails off and on since around 2006. Full time Rails developer currently.
How do you use GitHub?: All of my source code, dotfiles, projects in progress, contributing to other projects.
@cmeiklejohn
cmeiklejohn / vowstobi.coffee
Created September 10, 2011 21:24
vows and tobi not working, anyone?
# coffeescript issue
vows = require('vows')
tobi = require('tobi')
should = require('should')
getBrowser = () ->
tobi.createBrowser(80, 'www.google.com')
vows
vows = require('vows')
tobi = require('tobi')
should = require('should')
vows
.describe('Test')
.addBatch
'A hit':
topic: () ->
browser = tobi.createBrowser(80, 'www.yahoo.com')
{
"author": "drip <drip@drip.io>",
"name": "drip",
"description": "npm continuous integration",
"version": "0.0.1-5",
"repository": {
"url": "https://github.com/drip/drip.git"
},
"engines": {
"node": "~v0.4.7"
.--.-.
( ( )__
(_, \ ) ,_) |
'-'--`--' ~~| , \ _ /
,|`-._/| -== (_) ==-
^^ .' | /||\ / \
^^ .' | ./ ||`\ |
/ `-. |/._ || \
/ `|| `|;-._\
.--.-.
( ( )__
(_, \ ) ,_) |
'-'--`--' ~~| , \ _ /
,|`-._/| -== (_) ==-
^^ .' | /||\ / \
^^ .' | ./ ||`\ |
/ `-. |/._ || \
/ `|| `|;-._\
@cmeiklejohn
cmeiklejohn / person_test.rb
Created September 20, 2011 20:57 — forked from tenderlove/person_test.rb
Use minitest/spec with Rails 3
require 'test_helper'
require 'minitest/autorun'
module Tenderlove
class Spec < MiniTest::Spec
include ActiveSupport::Testing::SetupAndTeardown
include ActiveRecord::TestFixtures
alias :method_name :__name__ if defined? :__name__
self.fixture_path = File.join(Rails.root, 'test', 'fixtures')
@cmeiklejohn
cmeiklejohn / en.yml
Created September 27, 2011 20:51 — forked from chrisbloom7/README.md
A cheap knock off of the default validates_length_of validator, but checks the filesize of a Carrierwave attachment
# config/locales/en.yml
en:
errors:
messages:
wrong_size: "is the wrong size (should be %{file_size})"
size_too_small: "is too small (should be at least %{file_size})"
size_too_big: "is too big (should be at most %{file_size})"
#http://eggsonbread.com/2010/03/28/my-rspec-best-practices-and-tips/
describe User do
subject { user }
let(:user) { User.new }
context "when name empty" do
it { should_not be_valid }
specify { user.save.should be_false }
end
@cmeiklejohn
cmeiklejohn / person_test.rb
Created October 5, 2011 20:28 — forked from vamsee/person_test.rb
Use minitest/spec with Rails 3
require 'test_helper'
require 'minitest/autorun'
module Tenderlove
class Spec < MiniTest::Spec
include ActiveSupport::Testing::SetupAndTeardown
include ActiveRecord::TestFixtures
alias :method_name :__name__ if defined? :__name__
self.fixture_path = File.join(Rails.root, 'test', 'fixtures')