Skip to content

Instantly share code, notes, and snippets.

Bradley Schaefer soulcutter

Block or report user

Report or block soulcutter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:5936232
require 'active_support'
module TestConcern
extend ActiveSupport::Concern
module ClassMethods
def test_class_method
puts "I gots class!"
end
end
View photo_claimer.rb
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
View categories.rb
module Categories
ALL = [
:BUSINESS,
:CALL,
:CONTACT,
:KNOWLEDGE,
:ENTERTAINMENT,
:EMAIL,
:HELP,
:TRAVEL,
View gist:2705200
describe Article do
subject(:article) { Article.new }
it "validates presence of :title" do
article.should validate_presence_of(:title)
end
end
You can’t perform that action at this time.