Sha256: 25a0925ce14f4f903ef737d7dc629f68730a47aeca459e8f7f929a1308d3b64f

Contents?: true

Size: 432 Bytes

Versions: 14

Compression:

Stored size: 432 Bytes

Contents

require 'spec_helper'

describe "pub sub" do
  it do
    @got_it = false
    Albacore.subscribe :pubsub do |obj| 
      @got_it = obj
    end
    Albacore.publish :pubsub, true
    @got_it.should be_true
  end

  it 'knows if it\'s Windows it\'s running on' do
    (::Albacore.windows? === true || ::Albacore::windows? === false).should be_true
  end
  it 'should not be nil' do
    ::Albacore.windows?.should_not be_nil
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
albacore-2.0.0.rc.21 spec/albacore_spec.rb
albacore-2.0.0.rc.20 spec/albacore_spec.rb
albacore-2.0.0.rc.19 spec/albacore_spec.rb
albacore-2.0.0.rc.18 spec/albacore_spec.rb
albacore-2.0.0.rc.17 spec/albacore_spec.rb
albacore-2.0.0.rc.15 spec/albacore_spec.rb
albacore-2.0.0.rc.14 spec/albacore_spec.rb
albacore-2.0.0.rc.13 spec/albacore_spec.rb
albacore-2.0.0.rc.12 spec/albacore_spec.rb
albacore-2.0.0.rc.11 spec/albacore_spec.rb
albacore-2.0.0.rc.10 spec/albacore_spec.rb
albacore-2.0.0.rc.9 spec/albacore_spec.rb
albacore-2.0.0.rc.8 spec/albacore_spec.rb
albacore-2.0.0.rc.7 spec/albacore_spec.rb