Skip to content

Commit

Permalink
EventManager should be a singleton.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacius committed Feb 9, 2009
1 parent bbf4a61 commit 807da05
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/event_manager_spec.rb
Expand Up @@ -22,4 +22,12 @@ def self.reset
@evm = EventManager.instance
end

it "should be a singleton class" do
@evm.should be_kind_of(Singleton)
end

it "should accept pushed events" do
lambda { @evm.push(:myevent) }.should_not raise_error
end

end

0 comments on commit 807da05

Please sign in to comment.