Skip to content

Instantly share code, notes, and snippets.

@MichaelMartinez
Created March 7, 2012 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichaelMartinez/1991023 to your computer and use it in GitHub Desktop.
Save MichaelMartinez/1991023 to your computer and use it in GitHub Desktop.
Coffee-Script with Jasmine Output
describe "StringCalc", ->
describe "constructor", ->
beforeEach ->
@mystrCalc = new StrCalc '1'
it 'extracts first number', ->
(expect @mystrCalc.add).toEqual(1)
Compiles to
(function() {
describe("StringCalc", function() {
return describe("constructor", function() {
beforeEach(function() {
return this.mystrCalc = new StrCalc('1');
});
return it('extracts first number', function() {
return (expect(this.mystrCalc.add)).toEqual(1);
});
});
});
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment