3 require "#{Dir.pwd}/features/support/extra_hooks.rb"
9 raise StandardError.new("Command exited with #{$?}")
19 File.open('debian/changelog', 'w') do |changelog|
20 changelog.write(<<END_OF_CHANGELOG)
21 tails (0) stable; urgency=low
25 -- Tails developers <tails@boum.org> Mon, 30 Jan 2012 01:00:00 +0000
29 fatal_system "git init --quiet"
30 fatal_system "git config user.email 'tails@boum.org'"
31 fatal_system "git config user.name 'Tails developers'"
32 fatal_system "git add debian/changelog"
33 fatal_system "git commit --quiet debian/changelog -m 'First release'"
34 fatal_system "git branch -M stable"
35 fatal_system "git branch testing stable"
36 fatal_system "git branch devel stable"
37 fatal_system "git branch experimental devel"
40 RSpec::Matchers.define :have_suite do |suite|
42 # e.g.: `deb http://deb.tails.boum.org/ 0.10 main contrib non-free`
43 %r{^deb +http://deb\.tails\.boum\.org/ +#{Regexp.escape(suite)} main}.match(string)
45 failure_message_for_should do |string|
46 "expected the sources to include #{suite}\nCurrent sources : #{string}"
48 failure_message_for_should_not do |string|
49 "expected the sources to exclude #{suite}\nCurrent sources : #{string}"
52 "expected an output with #{suite}"