Skip to content

Commit

Permalink
Tests actually run
Browse files Browse the repository at this point in the history
  • Loading branch information
quirkey committed Oct 3, 2011
1 parent e410207 commit aca789b
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 14 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ gem 'resque'
# Include everything needed to run rake, tests, features, etc.
group :development do
gem 'minitest', '>=2'
gem "shoulda", ">= 0"
gem "bundler", "~> 1.0.0"
gem "jeweler", "~> 1.6.2"
gem "rcov", ">= 0"
end
35 changes: 35 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
GEM
remote: http://rubygems.org/
specs:
git (1.2.5)
jeweler (1.6.2)
bundler (~> 1.0)
git (>= 1.2.5)
rake
json (1.4.6)
minitest (2.3.1)
rack (1.2.2)
rake (0.9.2)
redis (2.2.0)
redis-namespace (1.0.3)
redis (< 3.0.0)
resque (1.13.0)
json (~> 1.4.6)
redis-namespace (>= 0.10.0)
sinatra (>= 0.9.2)
vegas (~> 0.1.2)
sinatra (1.2.6)
rack (~> 1.1)
tilt (< 2.0, >= 1.2.2)
tilt (1.3)
vegas (0.1.8)
rack (>= 1.0.0)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.0.0)
jeweler (~> 1.6.2)
minitest (>= 2)
resque
8 changes: 0 additions & 8 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end

require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
test.rcov_opts << '--exclude "gems/*"'
end

task :default => :test

require 'rake/rdoctask'
Expand Down
1 change: 1 addition & 0 deletions lib/resque-metrics.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require 'resque/metrics'
8 changes: 8 additions & 0 deletions lib/resque/metrics.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require 'resque'

module Resque
module Metrics


end
end
2 changes: 1 addition & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dir = File.dirname(File.expand_path(__FILE__))
require 'rubygems'
require 'bundler'
begin
Expand All @@ -8,7 +9,6 @@
exit e.status_code
end
require 'minitest/autorun'
require 'shoulda'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
Expand Down
8 changes: 5 additions & 3 deletions test/test_resque-metrics.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
require 'helper'

class TestResqueMetrics < Test::Unit::TestCase
should "probably rename this file and start testing for real" do
flunk "hey buddy, you should probably rename this file and start testing for real"
class TestResqueMetrics < MiniTest::Unit::TestCase

def test_should_pass_resque_plugin_lint
assert Resque::Plugin.lint(Resque::Metrics)
end

end

0 comments on commit aca789b

Please sign in to comment.