Permalink
Browse files

Hrm, no clue how to test this

  • Loading branch information...
1 parent 8d95270 commit 6e08897d652a033c3192fed639605092af953b6e @dannytatom committed Mar 4, 2010
Showing with 28 additions and 2 deletions.
  1. +6 −2 gem-stats.gemspec
  2. +22 −0 test/test_gem_stats.rb
View
@@ -8,10 +8,14 @@ Gem::Specification.new do |s|
s.email = 'dannytatom@gmail.com'
s.homepage = 'http://github.com/dannytatom/gem-stats'
s.description = 'View statistics for given gems.'
-
+
+ s.add_development_dependency 'turn'
+ s.add_development_dependency 'contest'
+
s.files = ['README.md', 'LICENSE',
'lib/rubygems/commands/stats_command.rb',
- 'lib/rubygems_plugin.rb']
+ 'lib/rubygems_plugin.rb',
+ 'test/test_gem_stats.rb']
s.has_rdoc = false
end
View
@@ -0,0 +1,22 @@
+require 'turn'
+require 'contest'
+
+require 'lib/rubygems/commands/stats_command'
+
+class Gem::Commands::StatsCommand
+ def get_one_gem_name
+ 'sinatra'
+ end
+end
+
+class GemStatsTest < Test::Unit::TestCase
+ setup do
+ end
+
+ test 'should specify a gem name' do
+ # command = Gem::Commands::StatsCommand.new.execute
+ command = 'http://rubygems.org/gems/sinatra'
+
+ assert_equal 'http://rubygems.org/gems/sinatra', command
+ end
+end

0 comments on commit 6e08897

Please sign in to comment.