spec/spec_helper_system.rb in rspec-system-1.7.1 vs spec/spec_helper_system.rb in rspec-system-2.0.0
- old
+ new
@@ -1,26 +1,26 @@
require 'rspec-system/spec_helper'
+# A localized module for storing project specific helpers
module LocalHelpers
+ # Return the project root
+ #
+ # @return [Pathname] root directory of project
def proj_root
Pathname.new(File.expand_path(File.join(File.dirname(__FILE__), '..')))
end
+ # Return the fixture directory
+ #
+ # @return [Pathname] test fixture directory
def fixture_root
proj_root + 'spec' + 'fixtures'
end
end
RSpec.configure do |c|
c.include ::LocalHelpers
c.before :suite do
shell 'echo foobar > /tmp/setupblock'
- end
-
- # NOTE: this is deprecated, but we do this for legacy testing purposes
- # with the next major release we should remove this capability, and remove
- # the test. Do not use this in your own tests any more!
- c.system_setup_block = proc do
- shell 'echo foobar > /tmp/setupblockold'
end
end