Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Include the link to a ticket from open_ticket

  • Loading branch information...
commit 97a497ae4424d5940bf319f2b54a031e0147306d 1 parent bbc10ad
Eloy Durán authored December 03, 2010
2  lib/macruby_bugmash_bot/trac.rb
@@ -43,7 +43,7 @@ def open_ticket
43 43
       end
44 44
     end
45 45
     if ot
46  
-      "Ticket available #{ot[:summary]}"
  46
+      "Ticket available #{ot[:summary]} (#{ot[:link]})"
47 47
     else
48 48
       "There are no more open tickets! \o/"
49 49
     end
12  spec/trac_spec.rb
@@ -39,14 +39,14 @@ def self.raw_active_tickets_feed
39 39
   end
40 40
 
41 41
   it "returns a ticket that nobody is working on yet, in ascending ID order" do
42  
-    @trac.open_ticket.should == "Ticket available #19: Problems with method_missing"
43  
-    @trac.open_ticket.should == "Ticket available #19: Problems with method_missing"
  42
+    @trac.open_ticket.should == "Ticket available #19: Problems with method_missing (http://www.macruby.org/trac/ticket/19)"
  43
+    @trac.open_ticket.should == "Ticket available #19: Problems with method_missing (http://www.macruby.org/trac/ticket/19)"
44 44
     @trac.assign_ticket(19, "alloy")
45  
-    @trac.open_ticket.should == "Ticket available #47: Cannot pass a :symbol directly as a named parameter"
46  
-    @trac.open_ticket.should == "Ticket available #47: Cannot pass a :symbol directly as a named parameter"
  45
+    @trac.open_ticket.should == "Ticket available #47: Cannot pass a :symbol directly as a named parameter (http://www.macruby.org/trac/ticket/47)"
  46
+    @trac.open_ticket.should == "Ticket available #47: Cannot pass a :symbol directly as a named parameter (http://www.macruby.org/trac/ticket/47)"
47 47
     @trac.assign_ticket(47, "alloy")
48  
-    @trac.open_ticket.should == "Ticket available #81: Enumerable::Enumerator seems to be broken"
49  
-    @trac.open_ticket.should == "Ticket available #81: Enumerable::Enumerator seems to be broken"
  48
+    @trac.open_ticket.should == "Ticket available #81: Enumerable::Enumerator seems to be broken (http://www.macruby.org/trac/ticket/81)"
  49
+    @trac.open_ticket.should == "Ticket available #81: Enumerable::Enumerator seems to be broken (http://www.macruby.org/trac/ticket/81)"
50 50
 
51 51
     @trac.active_tickets.each { |_, t| t[:assigned_to] = "alloy" }
52 52
     @trac.open_ticket.should == "There are no more open tickets! \o/"

0 notes on commit 97a497a

Please sign in to comment.
Something went wrong with that request. Please try again.