<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,4 @@
 .DS_Store
 html
-pkg
\ No newline at end of file
+pkg
+coverage
\ No newline at end of file</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -8,6 +8,14 @@ module Growl
     GROWL_NOTIFICATION_TIMED_OUT = &quot;GrowlTimedOut!&quot;
     GROWL_KEY_CLICKED_CONTEXT = &quot;ClickedContext&quot;
     
+    PRIORITIES = {
+      :emergency =&gt;  2,
+      :high      =&gt;  1,
+      :normal    =&gt;  0,
+      :moderate  =&gt; -1,
+      :very_low  =&gt; -2,
+    }
+    
     class &lt;&lt; self
       # Returns the singleton instance of Growl::Notifier with which you register and send your Growl notifications.
       def sharedInstance
@@ -71,7 +79,7 @@ module Growl
         :NotificationName =&gt; notification_name,
         :NotificationTitle =&gt; title,
         :NotificationDescription =&gt; description,
-        :NotificationPriority =&gt; options[:priority] || 0
+        :NotificationPriority =&gt; PRIORITIES[options[:priority]] || options[:priority] || 0
       }
       dict[:NotificationIcon] = options[:icon] if options[:icon]
       dict[:NotificationSticky] = 1 if options[:sticky]</diff>
      <filename>lib/growl.rb</filename>
    </modified>
    <modified>
      <diff>@@ -151,6 +151,18 @@ describe &quot;Growl::Notifier.sharedInstance&quot; do
     @instance.notify(@notifications.first, 'title', 'description')
   end
   
+  it &quot;should take a symbol instead of an integer to specify the priority level when sending a notification to Growl&quot; do
+    priority_table = { :very_low =&gt; -2, :moderate =&gt; -1, :normal =&gt; 0, :high =&gt; 1, :emergency =&gt; 2 }
+    
+    priority_table.each do |key, value|
+      @center.expects(:postNotificationName_object_userInfo_deliverImmediately).with do |name, object, info, immediately|
+        info[:NotificationPriority] == value
+      end
+      
+      @instance.notify(@notifications.first, 'title', 'description', :priority =&gt; key)
+    end
+  end
+  
   it &quot;should add a callback to the callbacks if a block is given to #notify&quot; do
     callback = proc { message_from_callback }
     @instance.notify(@notifications.first, 'title', 'description', &amp;callback)</diff>
      <filename>test/growl_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c9f4f306ccf564df4376c7e41e1bd89a09403d40</id>
    </parent>
  </parents>
  <author>
    <name>Eloy Duran</name>
    <email>eloy.de.enige@gmail.com</email>
  </author>
  <url>http://github.com/psychs/growlnotifier/commit/ab77d97e05abf6cfaeb648d960db0a2e64c30e61</url>
  <id>ab77d97e05abf6cfaeb648d960db0a2e64c30e61</id>
  <committed-date>2008-07-28T02:45:13-07:00</committed-date>
  <authored-date>2008-07-28T02:45:13-07:00</authored-date>
  <message>Let the user specify the priority with a symbol instead of an integer.</message>
  <tree>652b522f7728caa9f5523c8b89b4718dd9a0d0f3</tree>
  <committer>
    <name>Eloy Duran</name>
    <email>eloy.de.enige@gmail.com</email>
  </committer>
</commit>
