Sha256: b5ec35c16f4529acf01b9c66518138403f1ff87e53ced6cc0ae03f24db8c2cb8
Contents?: true
Size: 826 Bytes
Versions: 1
Compression:
Stored size: 826 Bytes
Contents
require 'spec_helper' describe "what methods are included by default" do require 'albacore' class A ; include Albacore::DSL ; end subject { A.new.method(:sh).to_s } it { should include("Albacore::CrossPlatformCmd") } end class X include Albacore::DSL def initialize ; end end #puts "X has methods: #{X.new.private_methods.inspect}" %w[nugets_restore nugets_pack asmver build test_runner restore_hint_paths].each { |sym| method = :"#{sym}" describe "that #{method}(*args, &block) is included when doing `require 'albacore'`" do subject { X.new } it { subject.respond_to?(method, true).should be_true } end } describe "pub sub" do it { @got_it = false Albacore.subscribe :pubsub do |obj| @got_it = obj end Albacore.publish :pubsub, true @got_it.should be_true } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.6.2.rc1 | spec/albacore_spec.rb |