[DRE-maint] Bug#715013: two alternatives
Cédric Boutillier
cedric.boutillier at gmail.com
Fri Jul 12 23:29:22 UTC 2013
Hi,
Thanks for reporting this issue.
This problem is caused by a change of behavior of RSpec that happened
around the 2.5 release.
Before, having a require "rspec" would imply that specs are run at exit
time, but this is no longer true. This probably affects other packages
using RSpec, that haven't been updated for a while.
There are two alternatives:
- use rspec/autorun. Instead of modifying the source to add it to
spec/spec_helper, you can add it at the top of
debian/ruby-test-files.yaml
- an other possibility is to replace the 'yaml' method to run the tests
with the 'rake' method, by deleting debian/ruby-test-files.yaml and
add a debian/ruby-tests.rake file with a content similar to:
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = './spec/*_spec.rb'
end
task :default => :spec
Cheers,
Cédric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20130713/ae674b9a/attachment-0001.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list