spec/spec_helper.rb in csl-1.0.0.pre3 vs spec/spec_helper.rb in csl-1.0.0.pre4
- old
+ new
@@ -25,6 +25,17 @@
end
end
RSpec.configure do |config|
config.include(SilentWarnings)
+
+ config.before :all do
+ @style_root, @locale_root = CSL::Style.root, CSL::Locale.root
+
+ CSL::Style.root = File.expand_path('../fixtures/styles', __FILE__)
+ CSL::Locale.root = File.expand_path('../fixtures/locales', __FILE__)
+ end
+
+ config.after :all do
+ CSL::Style.root, CSL::Locale.root = @style_root, @locale_root
+ end
end