Sha256: df79ee3bc99712dbdd0df6fa6c8360d283f11b2e0c74a435b9197294f6662cfb
Contents?: true
Size: 1.74 KB
Versions: 4
Compression:
Stored size: 1.74 KB
Contents
#-- # Copyright: Copyright (c) 2010 RightScale, Inc. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # 'Software'), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to # the following conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #++ require File.join(File.dirname(__FILE__), 'spec_helper') require 'scraper_base' describe RightScale::ScraperBase do before(:each) do @base = RightScale::ScraperBase.new('/tmp') end it 'should initialize the scrape directory' do @base.root_dir.should == '/tmp' end it 'should default to non incremental updates' do @base.send(:incremental_update?).should be_false end it 'should allow retrieving the download directory path' do repo_dir = RightScale::ScraperBase.repo_dir('root_dir', { :repo_type => :git, :url => 'git://github.com/rightscale/right_scraper.git' }) repo_dir.should =~ /^root_dir\// end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
right_scraper-1.0.4 | spec/scraper_base_spec.rb |
right_scraper-1.0.3 | spec/scraper_base_spec.rb |
right_scraper-1.0.2 | spec/scraper_base_spec.rb |
right_scraper-1.0.1 | spec/scraper_base_spec.rb |