spec/pathops_spec.rb in hx-0.6.1 vs spec/pathops_spec.rb in hx-0.7.0
- old
+ new
@@ -5,11 +5,11 @@
describe Hx::AddPath do
before(:each) do
@before_paths = Set['foo', 'bar']
@after_paths = Set['XXXfooYYY', 'XXXbarYYY']
- @source = FakeSource.new
+ @source = FakeInput.new
@source.add_entry('foo', 'FOO')
@source.add_entry('bar', 'BAR')
@add = Hx::AddPath.new(@source, :prefix => 'XXX', :suffix => 'YYY')
end
@@ -27,11 +27,11 @@
end
describe Hx::StripPath do
before(:each) do @before_paths = Set['XXXfooYYY', 'XXXbarYYY', 'lemur']
@after_paths = Set['foo', 'bar']
- @source = FakeSource.new
+ @source = FakeInput.new
@source.add_entry('XXXfooYYY', 'FOO')
@source.add_entry('XXXbarYYY', 'BAR')
@strip = Hx::StripPath.new(@source, :prefix => 'XXX', :suffix => 'YYY')
end
@@ -48,10 +48,10 @@
end
end
describe Hx::PathSubset do
before(:each) do
- @source = FakeSource.new
+ @source = FakeInput.new
@all_paths = Set['lemur', 'foo/bar', 'foo/baz', 'hoge/hoge']
@all_paths.each do |path|
@source.add_entry(path, path)
end
@subset = Hx::PathSubset.new(@source, :only => 'foo/*')