Sha256: 3bf380cd5c8080a5f271231d289432314b53e73c65898e1189ea2cd44bdbe6ce

Contents?: true

Size: 800 Bytes

Versions: 22

Compression:

Stored size: 800 Bytes

Contents

require_relative 'test_helper'
require 'fileutils'

module Dynflow
  module WorldTest
    describe World do
      let(:world) { WorldFactory.create_world }
      let(:world_with_custom_meta) { WorldFactory.create_world { |c| c.meta = { 'fast' => true } } }

      describe '#meta' do
        it 'by default informs about the hostname and the pid running the world' do
          registered_world = world.coordinator.find_worlds(false, id: world.id).first
          registered_world.meta.must_equal('hostname' => Socket.gethostname, 'pid' => Process.pid)
        end

        it 'is configurable' do
          registered_world = world.coordinator.find_worlds(false, id: world_with_custom_meta.id).first
          registered_world.meta.must_equal('fast' => true)
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
dynflow-0.8.21 test/world_test.rb
dynflow-0.8.20 test/world_test.rb
dynflow-0.8.19 test/world_test.rb
dynflow-0.8.18 test/world_test.rb
dynflow-0.8.17 test/world_test.rb
dynflow-0.8.16 test/world_test.rb
dynflow-0.8.15 test/world_test.rb
dynflow-0.8.14 test/world_test.rb
dynflow-0.8.13 test/world_test.rb
dynflow-0.8.12 test/world_test.rb
dynflow-0.8.11 test/world_test.rb
dynflow-0.8.10 test/world_test.rb
dynflow-0.8.9 test/world_test.rb
dynflow-0.8.8 test/world_test.rb
dynflow-0.8.7 test/world_test.rb
dynflow-0.8.6 test/world_test.rb
dynflow-0.8.5 test/world_test.rb
dynflow-0.8.4 test/world_test.rb
dynflow-0.8.3 test/world_test.rb
dynflow-0.8.2 test/world_test.rb