Check-in [c423496df8]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | - skip rpm tests and warn if 'rpmbuild' is not found. - add an 'rspec' specific log channel |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
c423496df80ad312e1cbf290317de5a2 |
User & Date: | jls@semicomplete.com 2012-03-09 20:00:07 |
Context
2012-03-09
| ||
20:54 | - bump to insist 0.0.2 check-in: 515448fbba user: jls@semicomplete.com tags: trunk | |
20:00 | - skip rpm tests and warn if 'rpmbuild' is not found. - add an 'rspec' specific log channel check-in: c423496df8 user: jls@semicomplete.com tags: trunk | |
19:42 | - bump cabin version check-in: fc90febfa2 user: jls@semicomplete.com tags: trunk | |
Changes
Changes to spec/fpm/package/rpm_spec.rb.
1 2 3 4 5 6 | require "spec_setup" require "fpm" # local require "fpm/package/rpm" # local require "fpm/package/dir" # local require "arr-pm/file" # gem 'arr-pm' | > > > > > | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | require "spec_setup" require "fpm" # local require "fpm/package/rpm" # local require "fpm/package/dir" # local require "arr-pm/file" # gem 'arr-pm' if !program_in_path?("rpmbuild") Cabin::Channel.get("rspec") \ .warn("Skipping RPM tests because I can't find 'rpmbuild' in your PATH") end describe FPM::Package::RPM, :if => program_in_path?("rpmbuild") do subject { FPM::Package::RPM.new } describe "#output" do context "package attributes" do before :all do @target = Tempfile.new("fpm-test-rpm") subject.name = "name" |
︙ | ︙ |
Changes to spec/spec_setup.rb.
1 | require "rubygems" # for ruby 1.8 | | | > | > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | require "rubygems" # for ruby 1.8 require "insist" # gem "insist" require "rush" # gem "rush" require "cabin" # gem "cabin" require "tmpdir" # stdlib require "tempfile" # stdlib require "fileutils" # stdlib # put "lib" in RUBYLIB $: << File.join(File.dirname(File.dirname(__FILE__)), "lib") # for method "program_in_path?" etc require "fpm/util" include FPM::Util # Enable debug logs if requested. if $DEBUG or ENV["DEBUG"] Cabin::Channel.get.level = :debug Cabin::Channel.get.subscribe(STDOUT) end spec_logger = Cabin::Channel.get("rspec") spec_logger.subscribe(STDOUT) spec_logger.level = :warn |