[DRE-commits] [ruby-climate-control] 04/04: Make tests run

Balasankar C balasankarc-guest at moszumanska.debian.org
Sun Jul 26 17:15:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository ruby-climate-control.

commit 5d2996420bf96ad7c7fa4e4c9c179c8318a4c1c3
Author: Balasankar C <balasankarc at autistici.org>
Date:   Sun Jul 26 22:39:13 2015 +0530

    Make tests run
---
 debian/patches/rspec3    | 15 +++++++++++++++
 debian/patches/series    |  2 ++
 debian/patches/simplecov | 14 ++++++++++++++
 debian/ruby-tests.rake   |  6 ++++--
 4 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/debian/patches/rspec3 b/debian/patches/rspec3
new file mode 100644
index 0000000..18e417b
--- /dev/null
+++ b/debian/patches/rspec3
@@ -0,0 +1,15 @@
+Description: Make tests follow RSpec 3 syntax
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2015-07-25
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/acceptance/climate_control_spec.rb
++++ b/spec/acceptance/climate_control_spec.rb
+@@ -9,6 +9,6 @@
+     end
+ 
+     expect(ENV['FOO']).to be_nil
+-    expect(block_run).to be_true
++    expect(block_run).to be_truthy
+   end
+ end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..34ad8e3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+simplecov
+rspec3
diff --git a/debian/patches/simplecov b/debian/patches/simplecov
new file mode 100644
index 0000000..0df6c53
--- /dev/null
+++ b/debian/patches/simplecov
@@ -0,0 +1,14 @@
+Description: Disable simplecov while running tests
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2015-07-25
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,6 +1,3 @@
+-require 'simplecov'
+-SimpleCov.start
+-
+ $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
+ $LOAD_PATH << File.join(File.dirname(__FILE__))
+ 
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index cf1591e..dcc1601 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,5 +1,7 @@
-require 'gem2deb/rake/spectask'
+require 'rspec/core/rake_task'
 
-Gem2Deb::Rake::RSpecTask.new do |spec|
+RSpec::Core::RakeTask.new(:spec) do |spec|
   spec.pattern = './spec/**/*_spec.rb'
 end
+
+task :default => :spec

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-climate-control.git



More information about the Pkg-ruby-extras-commits mailing list