Sha256: ee04767619bbd116736835389c67c478f469d8f4224db68c2c13a160d4a8cd69

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

require 'spec_helper'

describe MultiSync do
  context :methods do
    describe :version do
      subject { MultiSync::VERSION }
      it { should be_kind_of(String) }
    end

    describe :logger do
      subject { MultiSync.respond_to?(:logger) }
      it { should be_true }
    end

    describe :environment do
      subject { MultiSync.respond_to?(:environment) }
      it { should be_true }
    end

    describe :credentials do
      subject { MultiSync.respond_to?(:credentials) }
      it { should be_true }
    end

    describe :run do
      subject { MultiSync.respond_to?(:run) }
      it { should be_true }
    end

    describe :configure do
      subject { MultiSync.respond_to?(:configure) }
      it { should be_true }
    end
  end

  context :configure do
    it 'should allow you to set configuration' do
      MultiSync.configure do |config|
        config.verbose = true
        config.target_pool_size = 2
      end

      expect(MultiSync.verbose).to be_true
      expect(MultiSync.target_pool_size).to be 2
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
multi_sync-0.0.2 spec/unit/multi_sync_spec.rb