summaryrefslogtreecommitdiff
path: root/spec/javascripts
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-09-18 12:33:41 -0600
committermo k <mo@mokhan.ca>2012-09-18 12:33:41 -0600
commit6d0f2af3c8ff366feb1e610b4beda64bfe5fd791 (patch)
treec4be9f4eb75de3d1cd665ef31744817db0cc3d53 /spec/javascripts
parent0cf67e92f4d5c02863e34418ad4370375015a046 (diff)
bring back the greeting spec.
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/utility/greeting_spec.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/javascripts/utility/greeting_spec.js b/spec/javascripts/utility/greeting_spec.js
new file mode 100644
index 00000000..0d82f21a
--- /dev/null
+++ b/spec/javascripts/utility/greeting_spec.js
@@ -0,0 +1,16 @@
+describe ("Greeting", function() {
+ beforeEach (function() {
+ sut = new Greeting();
+ });
+ var sut;
+ describe ("when greeting someone", function() {
+ it ("should say their name", function() {
+ expect(sut.greet('mo')).toEqual('hi mo');
+ });
+ });
+ describe ("when saying goodbye", function() {
+ it ("should say their name", function() {
+ expect(sut.goodbye('joe')).toEqual('goodbye joe');
+ });
+ });
+});