From c00ca806a5057706170e3bdf28620c96658350a0 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 20 Jan 2013 20:12:17 -0500 Subject: [PATCH] set up rspec --- Rakefile | 3 +++ spec/spec_helper.rb | 5 +++++ spec/yawpa_spec.rb | 5 +++++ yawpa.gemspec | 2 ++ 4 files changed, 15 insertions(+) create mode 100644 spec/spec_helper.rb create mode 100644 spec/yawpa_spec.rb diff --git a/Rakefile b/Rakefile index f57ae68..b30916f 100644 --- a/Rakefile +++ b/Rakefile @@ -1,2 +1,5 @@ #!/usr/bin/env rake require "bundler/gem_tasks" +require 'rspec/core/rake_task' + +RSpec::Core::RakeTask.new('spec') diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..79997af --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,5 @@ +require 'bundler/setup' +require 'yawpa' + +RSpec.configure do |config| +end diff --git a/spec/yawpa_spec.rb b/spec/yawpa_spec.rb new file mode 100644 index 0000000..7d6c58c --- /dev/null +++ b/spec/yawpa_spec.rb @@ -0,0 +1,5 @@ +require 'spec_helper' + +describe Yawpa do + pending "write it" +end diff --git a/yawpa.gemspec b/yawpa.gemspec index c0cf006..5a85671 100644 --- a/yawpa.gemspec +++ b/yawpa.gemspec @@ -14,4 +14,6 @@ Gem::Specification.new do |gem| gem.name = "yawpa" gem.require_paths = ["lib"] gem.version = Yawpa::VERSION + + gem.add_development_dependency 'rspec' end