Permalink
Browse files

Add shortcuts for paste and play too.

  • Loading branch information...
1 parent 964427b commit 14326665fda12192f60853c10630c63a97e2b484 @technicalpickles technicalpickles committed Sep 6, 2011
Showing with 21 additions and 1 deletion.
  1. +8 −0 lib/firetower/room.rb
  2. +13 −1 spec/firetower_spec.rb
@@ -15,5 +15,13 @@ def to_s
def say!(message)
account.say!(name, message)
end
+
+ def paste!(message)
+ account.paste!(name, message)
+ end
+
+ def play!(message)
+ account.play!(name, message)
+ end
end
end
@@ -71,11 +71,23 @@
mock(:account)
end
- it "has short cut for say" do
+ it "has shortcut for say" do
account.should_receive(:say!).with('awesome', 'woooooot')
subject.say! 'woooooot'
end
+
+ it "has shortcut for paste" do
+ account.should_receive(:paste!).with('awesome', 'woooooot')
+
+ subject.paste! 'woooooot'
+ end
+
+ it "has shortcut for play" do
+ account.should_receive(:play!).with('awesome', 'woooooot')
+
+ subject.play! 'woooooot'
+ end
end
shared_examples_for "Notifier Plugins" do

0 comments on commit 1432666

Please sign in to comment.