Add tests to ensure File.expand_path is used to calculate relative paths

This commit is contained in:
Robert Bavey 2015-08-31 17:08:49 -04:00
parent d790474151
commit 88977bea7c
2 changed files with 13 additions and 0 deletions

View File

@ -900,5 +900,11 @@ describe RedStorm::SimpleBolt do
end
end
describe 'inherited' do
it 'should calculate base class path correctly' do
expect(File).to receive(:expand_path).with(__FILE__)
class TestBolt < RedStorm::SimpleBolt; end
end
end
end
end

View File

@ -895,5 +895,12 @@ describe RedStorm::SimpleSpout do
spout.get_component_configuration.should be_instance_of(Backtype::Config)
end
end
describe 'inherited' do
it 'should calculate base class path correctly' do
expect(File).to receive(:expand_path).with(__FILE__)
class TestSpout < RedStorm::SimpleSpout; end
end
end
end
end