Sha256: 803e7a7a013cd6ca38fef777f6d2e3647711354d41bc8156732a4555e35a3938
Contents?: true
Size: 434 Bytes
Versions: 4
Compression:
Stored size: 434 Bytes
Contents
require 'spec_helper' describe UrlGenerator do it 'return formatted url' do config = AppConfig.new :username => 'username', :password => 'password', :hostname => 'hostname', :project => 'project' ConfigService.stubs(:get).returns(config) url = UrlGenerator.generate expected_site = UrlGenerator::SITE % [config.username, config.password, config.hostname, config.project] url.should eq(expected_site) end end
Version data entries
4 entries across 4 versions & 1 rubygems