Sha256: 711feca28401a0d9b66eda73246c5e5b432d394851c2ebd1e0138f11777936f7

Contents?: true

Size: 802 Bytes

Versions: 19

Compression:

Stored size: 802 Bytes

Contents

require 'spec_helper'

describe Config do

  context 'with an endpoint and namespace set' do

    describe '#valid?' do

      it 'is valid' do
        Ratis.config.valid?.should be_true
      end

    end

  end

  context 'without an endpoint or namespace set' do

    before do
      # Override Ratis.configure made in spec_helper.rb
      # Ratis.config = Ratis::Config.new
    end

    describe '#valid?' do

      it 'is not valid' do
        pending('Need way in specs to set new config after one is set.')
        Ratis.config.valid?.should be_false
      end

    end

    after do
      # Reset Ratis.configure made in spec_helper.rb
      Ratis.configure do |config|
        config.endpoint = 'http://example.com/soap.cgi'
        config.namespace = 'TEST_NS'
      end
    end

  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ratis-3.3.7 spec/ratis/config_spec.rb
ratis-3.3.6 spec/ratis/config_spec.rb
ratis-3.3.5 spec/ratis/config_spec.rb
ratis-3.3.4 spec/ratis/config_spec.rb
ratis-3.3.3 spec/ratis/config_spec.rb
ratis-3.3.2 spec/ratis/config_spec.rb
ratis-3.3.1 spec/ratis/config_spec.rb
ratis-3.3.0 spec/ratis/config_spec.rb
ratis-3.2.1 spec/ratis/config_spec.rb
ratis-3.2.0 spec/ratis/config_spec.rb
ratis-3.1.8 spec/ratis/config_spec.rb
ratis-3.1.7 spec/ratis/config_spec.rb
ratis-3.1.6 spec/ratis/config_spec.rb
ratis-3.1.5.1 spec/ratis/config_spec.rb
ratis-3.1.5 spec/ratis/config_spec.rb
ratis-3.1.4 spec/ratis/config_spec.rb
ratis-3.1.3 spec/ratis/config_spec.rb
ratis-3.1.2 spec/ratis/config_spec.rb
ratis-3.1.1 spec/ratis/config_spec.rb