spec/plugins/script_spec.rb in arachni-0.4.2 vs spec/plugins/script_spec.rb in arachni-0.4.3
- old
+ new
@@ -1,11 +1,11 @@
-require_relative '../spec_helper'
+require 'spec_helper'
describe name_from_filename do
include_examples 'plugin'
it 'executes a Ruby script under the scope of the running plugin' do
- options.plugins[name_from_filename] = { 'path' => spec_path + 'fixtures/script_plugin.rb' }
+ options.plugins[name_from_filename] = { 'path' => fixtures_path + '/script_plugin.rb' }
run
results_for( name_from_filename ).should == 'I\'m a script!'
end
end