diff options
| author | mo k <mo@mokhan.ca> | 2012-09-18 13:12:08 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-09-18 13:12:08 -0600 |
| commit | 657e20a5b0fc342b16eec28e4d796e66b86b1927 (patch) | |
| tree | 7b96d61a4ed21731fa771569c1aaf5399f28fffc /spec/javascripts | |
| parent | 6d0f2af3c8ff366feb1e610b4beda64bfe5fd791 (diff) | |
convert greeting class to coffeescript.
Diffstat (limited to 'spec/javascripts')
| -rw-r--r-- | spec/javascripts/utility/greeting_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/javascripts/utility/greeting_spec.js b/spec/javascripts/utility/greeting_spec.js index 0d82f21a..dc1e5bf8 100644 --- a/spec/javascripts/utility/greeting_spec.js +++ b/spec/javascripts/utility/greeting_spec.js @@ -1,16 +1,16 @@ describe ("Greeting", function() { beforeEach (function() { - sut = new Greeting(); + sut = new Greeting('mo'); }); var sut; describe ("when greeting someone", function() { it ("should say their name", function() { - expect(sut.greet('mo')).toEqual('hi mo'); + expect(sut.greet()).toEqual('hi mo'); }); }); describe ("when saying goodbye", function() { it ("should say their name", function() { - expect(sut.goodbye('joe')).toEqual('goodbye joe'); + expect(sut.goodbye()).toEqual('goodbye mo'); }); }); }); |
