spec/spec_helper.rb in rspec-system-0.3.1 vs spec/spec_helper.rb in rspec-system-0.3.2
- old
+ new
@@ -11,15 +11,21 @@
Pathname.glob("#{dir}/shared_behaviours/**/*.rb") do |behaviour|
require behaviour.relative_path_from(Pathname.new(dir))
end
+def root_path
+ Pathname.new(File.expand_path(File.join(__FILE__, '..', '..')))
+end
+
def fixture_path
- Pathname.new(File.expand_path(File.join(__FILE__, '..', 'fixtures')))
+ root_path + 'spec' + 'fixtures'
end
+
def resources_path
- Pathname.new(File.expand_path(File.join(__FILE__, '..', '..', 'resources')))
+ root_path + 'resources'
end
+
def schema_path
resources_path + 'kwalify-schemas'
end
RSpec.configure do |config|