Skip to content

Instantly share code, notes, and snippets.

@eprothro
Created October 1, 2013 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eprothro/6785400 to your computer and use it in GitHub Desktop.
Save eprothro/6785400 to your computer and use it in GitHub Desktop.
rspec boilerplate organization
require 'spec_helper'
describe Resource do
let(:resource) { create :resource }
#-------------------------------------#
# ActiveRecord Relationship Behaviors #
#-------------------------------------#
context "with/when some context/event" do
it "exhibits some behavior" do
end
end
#---------------------------------#
# ActiveRecord Callback Behaviors #
#---------------------------------#
context "with/when some context/event" do
it "exhibits some behavior" do
end
end
#-------------------------------#
# Class Public Method Behaviors #
#-------------------------------#
describe ".create" do
it "exhibits some behavior" do
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment