Sha256: 077840610d9711651719f2543b6d92d70b54e08b89e1ffa67980b903ffb1b32e

Contents?: true

Size: 693 Bytes

Versions: 4

Compression:

Stored size: 693 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'spec_helper')

describe Puppet::Module::Tool::Applications::Application do

  describe 'inherited classes' do

    before do
      @app = Class.new(described_class).new
      Puppet::Module::Tool.stubs(:prepare_settings)
      Puppet.stubs(:settings => {:puppet_module_repository => 'http://fake.modules.site.com'})
    end

    describe '#repository' do
      before do
        @url = 'http://fake.com'
        Puppet.settings.expects(:[]).with(:puppet_module_repository).returns(@url)
      end
      it "should use the :puppet_module_repository setting" do
        @app.repository.uri.should == URI.parse(@url)
      end
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puppet-module-0.3.4 spec/unit/application_spec.rb
puppet-module-0.3.3 spec/unit/application_spec.rb
puppet-module-0.3.2 spec/unit/application_spec.rb
puppet-module-0.3.0 spec/unit/application_spec.rb