aboutsummaryrefslogtreecommitdiffstats
path: root/spec/exporters
diff options
context:
space:
mode:
authorMarc Florisson2013-07-11 11:02:00 +0200
committerMarc Florisson2013-07-11 11:02:00 +0200
commit030be8df5b402ed7dc4523d22447233a7b6d59da (patch)
treea0e7af08d2ec592b3230015eb48c985abb0c3ca2 /spec/exporters
parent006522962b2feb2f28446991866522acd5d4886d (diff)
downloadchouette-core-030be8df5b402ed7dc4523d22447233a7b6d59da.tar.bz2
fix locale expression
Diffstat (limited to 'spec/exporters')
-rw-r--r--spec/exporters/chouette/kml/exporter_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/exporters/chouette/kml/exporter_spec.rb b/spec/exporters/chouette/kml/exporter_spec.rb
index 2a733e0a4..53e485cd7 100644
--- a/spec/exporters/chouette/kml/exporter_spec.rb
+++ b/spec/exporters/chouette/kml/exporter_spec.rb
@@ -12,11 +12,17 @@ describe Chouette::Kml::Exporter do
subject { Chouette::Kml::Exporter.new(first_referential) }
- let(:zip_file_path) { "#{Rails.root}/tmp/exports/test.zip" }
+ let(:tmp_path) { File.join( Rails.root, "tmp")}
+ let(:exports_path) { File.join( tmp_path, "exports")}
+ let(:zip_file_path) { File.join( exports_path, "test.zip")}
let!(:line) { Factory(:line_with_stop_areas_having_parent) }
let!(:line2) { Factory(:line_with_stop_areas_having_parent) }
describe "#export" do
+ before(:each) do
+ Dir.mkdir( tmp_path) unless File.directory?( tmp_path)
+ Dir.mkdir( exports_path) unless File.directory?( exports_path)
+ end
it "should return a zip file with nothing inside with no objects in arguments" do
subject.export(zip_file_path, {:export_id => 1, :o => "line"} )