Add tests to ensure File.expand_path is used to calculate relative paths
This commit is contained in:
parent
d790474151
commit
88977bea7c
|
@ -900,5 +900,11 @@ describe RedStorm::SimpleBolt do
|
||||||
end
|
end
|
||||||
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
|
||||||
end
|
end
|
||||||
|
|
|
@ -895,5 +895,12 @@ describe RedStorm::SimpleSpout do
|
||||||
spout.get_component_configuration.should be_instance_of(Backtype::Config)
|
spout.get_component_configuration.should be_instance_of(Backtype::Config)
|
||||||
end
|
end
|
||||||
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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue