Sha256: 3327fa738ec5b60d09d49bf54659ae94746753ff2d2ff6a1912be8cf11501a45

Contents?: true

Size: 431 Bytes

Versions: 3

Compression:

Stored size: 431 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

3 entries across 3 versions & 1 rubygems

Version Path
albacore-2.0.0.rc.6 spec/albacore_spec.rb
albacore-2.0.0.rc.5 spec/albacore_spec.rb
albacore-2.0.0.rc.4 spec/albacore_spec.rb