Skip to content

Commit

Permalink
Setup test suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
Myron Marston committed Aug 25, 2010
1 parent f6c5cbe commit 968710e
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,17 @@
PATH
remote: .
specs:
wp_validators (0.0.1)

GEM
remote: http://rubygems.org/
specs:
rspec (1.3.0)

PLATFORMS
ruby

DEPENDENCIES
bundler (>= 1.0.0.rc.6)
rspec (~> 1.3.0)
wp_validators!
6 changes: 6 additions & 0 deletions Rakefile
@@ -1,2 +1,8 @@
require 'bundler'
Bundler::GemHelper.install_tasks

require 'bundler/setup'
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec)

task :default => :spec
11 changes: 11 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,11 @@
require 'bundler'
Bundler.setup

require 'wp_validators'

require 'spec'
require 'spec/autorun'

Spec::Runner.configure do |config|
# future configuration can go here
end
8 changes: 8 additions & 0 deletions spec/wp_validators_spec.rb
@@ -0,0 +1,8 @@
require 'spec_helper'

describe WpValidators do
it "is a module" do
WpValidators.should be_a(Module)
end
end

1 change: 1 addition & 0 deletions wp_validators.gemspec
Expand Up @@ -15,6 +15,7 @@ Gem::Specification.new do |s|
s.rubyforge_project = "wp_validators"

s.add_development_dependency "bundler", ">= 1.0.0.rc.6"
s.add_development_dependency "rspec", "~> 1.3.0"

s.files = `git ls-files`.split("\n")
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
Expand Down

0 comments on commit 968710e

Please sign in to comment.