Skip to content

Instantly share code, notes, and snippets.

@jasdeepsingh
Last active December 25, 2015 19:19
Show Gist options
  • Save jasdeepsingh/7026596 to your computer and use it in GitHub Desktop.
Save jasdeepsingh/7026596 to your computer and use it in GitHub Desktop.
spec_style
describe Class do
# let blocks are always single line blocks.
let(:variable) { value }
# context blocks always have a string description.
context "when something" do
before(:each) do
# before blocks are always multilined
end
# it blocks are always multilined
# it blocks always have a string description of the test
it "should test something" do
Class.new.should == some_object
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment