Skip to content

Commit

Permalink
Basic test setup for shoulda 2.11. Also included RDoc generation
Browse files Browse the repository at this point in the history
Rake task and cleaned up Gemfile to only use gemspec dependencies,
moving ronn to gemspec development dependency.
  • Loading branch information
colszowka committed Jan 26, 2011
1 parent c41f39b commit a18abe5
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 5 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ source "http://rubygems.org"

# Specify your gem's dependencies in capita_git.gemspec
gemspec
gem 'ronn'
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
capita_git (0.0.1)
capita_git (0.0.2)
git (>= 1.2.5)
thor (>= 0.14.6)

Expand All @@ -16,13 +16,13 @@ GEM
hpricot (>= 0.8.2)
mustache (>= 0.7.0)
rdiscount (>= 1.5.8)
shoulda (2.11.3)
thor (0.14.6)

PLATFORMS
ruby

DEPENDENCIES
capita_git!
git (>= 1.2.5)
ronn
thor (>= 0.14.6)
ronn (>= 0.7.3)
shoulda (>= 2.11.0)
16 changes: 16 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@ $:.unshift File.expand_path("../lib", __FILE__)
require 'bundler/gem_helper'
Bundler::GemHelper.install_tasks

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end

task :default => :test

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end

task :install => ["man:clean", "man:build"]
task :build => ["man:clean", "man:build"]
task :release => ["man:clean", "man:build"]
Expand Down
2 changes: 2 additions & 0 deletions capita_git.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.add_dependency('git', '>= 1.2.5')
s.add_dependency('thor', '>= 0.14.6')
s.add_development_dependency('ronn', ">= 0.7.3")
s.add_development_dependency('shoulda', ">= 2.11.0")
end
9 changes: 9 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'rubygems'
require 'bundler/setup'
require 'capita_git'

require 'test/unit'
require 'shoulda'

class Test::Unit::TestCase
end

0 comments on commit a18abe5

Please sign in to comment.