[DRE-commits] [ruby-simple-navigation] 02/02: Make specs run; patch out json_spec and exclude json test.

Ben Armstrong synrg at alioth.debian.org
Mon Aug 12 00:55:39 UTC 2013


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

synrg pushed a commit to branch master
in repository ruby-simple-navigation.

commit 3c8b3cd698c275905e3b101eb75e2e961485c1d9
Author: Ben Armstrong <synrg at debian.org>
Date:   Sun Aug 11 21:50:38 2013 -0300

    Make specs run; patch out json_spec and exclude json test.
---
 debian/patches/remove_json_spec.patch |   28 ++++++++++++++++++++++++++++
 debian/patches/series                 |    1 +
 debian/ruby-tests.rake                |   11 +++++++++++
 debian/ruby-tests.rb                  |   13 -------------
 4 files changed, 40 insertions(+), 13 deletions(-)

diff --git a/debian/patches/remove_json_spec.patch b/debian/patches/remove_json_spec.patch
new file mode 100644
index 0000000..06d57a4
--- /dev/null
+++ b/debian/patches/remove_json_spec.patch
@@ -0,0 +1,28 @@
+Description: remove json_spec
+ We cannot use json_spec yet, as it is not yet in the archive.
+ Besides, only a single test needs it, not all of them, so remove
+ it. The test requiring it will need to be skipped.
+Author: Ben Armstrong <synrg at sanctuary.nslug.ns.ca>
+Last-Update: 2013-08-11
+Forwarded: no
+
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,7 +1,7 @@
+ ENV["RAILS_ENV"] = "test"
+ require 'rubygems'
+ require 'rspec'
+-require 'json_spec'
++#require 'json_spec'
+ require 'action_controller'
+ 
+ module Rails
+@@ -29,7 +29,7 @@ RSpec.configure do |config|
+   # config.mock_with :flexmock
+   # config.mock_with :rr
+   config.mock_with :rspec
+-  config.include JsonSpec::Helpers
++#  config.include JsonSpec::Helpers
+ end
+ 
+ # spec helper methods
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e51e07c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+remove_json_spec.patch
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..eb17398
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,11 @@
+require 'rspec/core/rake_task'
+
+desc 'Default: run specs.'
+task :default => :spec
+
+RSpec::Core::RakeTask.new(:spec) do |t|
+  t.rspec_opts = ['--colour --format progress']
+  file_list = FileList['spec/**/*_spec.rb']
+  file_list = file_list.exclude("spec/lib/simple_navigation/rendering/renderer/json_spec.rb")
+  t.pattern = file_list
+end
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index eac5ce6..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-# FIXME
-# there's a spec/ or a test/ directory in the upstream source, but
-# no test suite was defined in the Gem specification. It would be
-# a good idea to define it here so the package gets tested at build time.
-# Examples:
-# $: << 'lib' << '.'
-# Dir['{spec,test}/**/*.rb'].each { |f| require f }
-#
-# require 'test/ts_foo.rb'
-#
-# require 'rbconfig'
-# ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
-# exec("#{ruby} -I. test/runtests.rb")

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



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