From 82ae343455a4fccba5ffa75abf9a0ec44ab7666c Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Sat, 1 Nov 2014 10:31:58 -0400 Subject: [PATCH] Update specs & fix Rakefile --- Rakefile | 9 +++------ spec/spec_helper.rb | 2 ++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Rakefile b/Rakefile index fa302de..d58aff1 100644 --- a/Rakefile +++ b/Rakefile @@ -1,7 +1,9 @@ require 'rspec/core/rake_task' require File.dirname(__FILE__) + '/lib/haste/version' -task :build => :test do +RSpec::Core::RakeTask.new(:spec) + +task :build => :spec do system "gem build haste.gemspec" end @@ -12,8 +14,3 @@ task :release => :build do # push the gem system "gem push haste-#{Haste::VERSION}.gem" end - -RSpec::Core::RakeTask.new(:test) do |t| - t.pattern = 'spec/**/*_spec.rb' - fail_on_error = true # be explicit -end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c4666f0..242fbbc 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1 +1,3 @@ +require 'ostruct' + require File.dirname(__FILE__) + '/../lib/haste'