Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 2 files changed
  • 0 comments
  • 1 contributor

Showing 2 changed files with 17 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 .rake_tasks
  2. +13 0 spec/mushroom/subscriber_spec.rb
4 .rake_tasks
... ... @@ -0,0 +1,4 @@
  1 +build
  2 +install
  3 +release
  4 +spec
13 spec/mushroom/subscriber_spec.rb
@@ -110,6 +110,19 @@ def notify
110 110 $server.notify(:start)
111 111 end
112 112
  113 + it 'name returns event name as string' do
  114 + $server = Server.new
  115 +
  116 + class CustomHandler < Mushroom::Subscriber
  117 + events :start, :on => Server
  118 +
  119 + def notify
  120 + name.should == 'server:start'
  121 + end
  122 + end
  123 +
  124 + $server.notify(:start)
  125 + end
113 126
114 127 end
115 128 end

No commit comments for this range

Something went wrong with that request. Please try again.