Skip to content

Instantly share code, notes, and snippets.

View soulcutter's full-sized avatar

Bradley Schaefer soulcutter

View GitHub Profile
describe Article do
subject(:article) { Article.new }
it "validates presence of :title" do
article.should validate_presence_of(:title)
end
end
@soulcutter
soulcutter / categories.rb
Created November 14, 2012 06:14 — forked from Drewch/categories.rb
categories
module Categories
ALL = [
:BUSINESS,
:CALL,
:CONTACT,
:KNOWLEDGE,
:ENTERTAINMENT,
:EMAIL,
:HELP,
:TRAVEL,
require_relative './upload_store'
class PhotoClaimer
attr_writer :photo_source
attr_writer :upload_storage_source
class FileNotFound < RuntimeError; end
def initialize(user_id, file_name)
@user_id = user_id
@soulcutter
soulcutter / gist:5936232
Last active December 19, 2015 09:49 — forked from cstump/gist:5936186
require 'active_support'
module TestConcern
extend ActiveSupport::Concern
module ClassMethods
def test_class_method
puts "I gots class!"
end
end