Skip to content

Commit

Permalink
Add rudimentary spec for User
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed May 31, 2009
1 parent e6b6635 commit 22a33c9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/user_spec.rb
@@ -0,0 +1,11 @@
require "#{File.dirname(__FILE__)}/../lib/git_store"
require 'pp'

describe GitStore::User do
it 'should parse a user string' do
user = GitStore::User.parse('Mr. T <mr.t@a-team.us> 1234567890 -0600')
user.name.should == 'Mr. T'
user.email.should == 'mr.t@a-team.us'
user.time.should == Time.at(1234567890 - 2160000)
end
end

0 comments on commit 22a33c9

Please sign in to comment.