<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,27 @@
 require File.dirname(__FILE__) + '/test_helper'
 
 class RiraTest &lt; Test::Unit::TestCase
-  should &quot;probably rename this file and start testing for real&quot; do
-    flunk &quot;hey buddy, you should probably rename this file and start testing for real&quot;
+  JIRA_URL = &quot;http://jira.lackac.hu&quot;
+  JIRA_USER = &quot;rubi&quot;
+  JIRA_PASS = &quot;j1r4b0t&quot;
+
+  context &quot;A Rira Client&quot; do
+    should &quot;be able to login with correct password&quot; do
+      rira = Rira(JIRA_URL + &quot;/rpc/xmlrpc&quot;)
+      assert_nothing_raised do
+        rira = rira.login(JIRA_USER, JIRA_PASS)
+      end
+      assert rira.instance_variable_get('@token').length &gt; 0
+    end
+
+    should &quot;be created with the short URL (without /rpc/xmlrpc)&quot; do
+      rira = Rira(JIRA_URL)
+      assert_nothing_raised { rira.login(JIRA_USER, JIRA_PASS) }
+    end
+
+    should &quot;not get token with wrong password&quot; do
+      rira = Rira(JIRA_URL)
+      assert_raise(Rira::RPCError) { rira.login(&quot;wrong&quot;, &quot;authentication&quot;) }
+    end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>test/rira_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>76655b02e80f2e0c1e8ad3bd0687b66bbd49d717</id>
    </parent>
  </parents>
  <author>
    <name>Laszlo Bacsi</name>
    <email>lackac@lackac.hu</email>
  </author>
  <url>http://github.com/lackac/rira/commit/0cd5f1dff625852f0ed59366ce45fa6393f26ad3</url>
  <id>0cd5f1dff625852f0ed59366ce45fa6393f26ad3</id>
  <committed-date>2009-02-01T18:06:45-08:00</committed-date>
  <authored-date>2009-02-01T18:06:45-08:00</authored-date>
  <message>Added some basic tests</message>
  <tree>821fad017aff1428c87688074d77fda5ba069b75</tree>
  <committer>
    <name>Laszlo Bacsi</name>
    <email>lackac@lackac.hu</email>
  </committer>
</commit>
