Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

Commit

Permalink
Remove some messy source specs (classification is tested by discover_…
Browse files Browse the repository at this point in the history
…uri_and_type).
  • Loading branch information
benhoskings committed Aug 19, 2012
1 parent b1a5613 commit b8a10b4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions spec/babushka/source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -444,15 +444,4 @@
@source.load!(true)
end
end

describe "classification" do
it "should treat file:// as public" do
(source = Source.new(*@remote_1))
[source.uri, source.name, source.type].should == [@remote_1.first, 'remote_1', :public]
end
it "should treat local paths as local" do
(source = Source.new(@remote_1.first.gsub(/^file:\/\//, ''), @remote_1.last))
[source.uri, source.name, source.type].should == [@remote_1.first.gsub(/^file:\/\//, ''), 'remote_1', :local]
end
end
end

0 comments on commit b8a10b4

Please sign in to comment.