Sha256: 438ae0347f310ff1b8861fc713ccd6bd67ac9b3f044c0411ab69370fcff5ad80
Contents?: true
Size: 607 Bytes
Versions: 2
Compression:
Stored size: 607 Bytes
Contents
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 "mesg n" >> ~/.profile' shell 'echo foobar > /tmp/setupblock' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-system-2.5.1 | spec/spec_helper_system.rb |
rspec-system-2.5.0 | spec/spec_helper_system.rb |