Last active
December 25, 2015 19:19
-
-
Save jasdeepsingh/7026596 to your computer and use it in GitHub Desktop.
spec_style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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