aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/exporters/chouette/kml/exporter_spec.rb8
-rw-r--r--spec/requests/referentials_spec.rb2
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/exporters/chouette/kml/exporter_spec.rb b/spec/exporters/chouette/kml/exporter_spec.rb
index 2135c0b91..a996b0746 100644
--- a/spec/exporters/chouette/kml/exporter_spec.rb
+++ b/spec/exporters/chouette/kml/exporter_spec.rb
@@ -28,25 +28,25 @@ describe Chouette::Kml::Exporter do
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"} )
File.exists?(zip_file_path).should be_true
- ::Zip::ZipFile.open(zip_file_path).size.should == 6
+ ::Zip::File.open(zip_file_path).size.should == 6
end
it "should return a zip file with 4 kml files" do
subject.export(zip_file_path, {:export_id => 1, :o => "line", :id => "#{line.id}" } )
File.exists?(zip_file_path).should be_true
- ::Zip::ZipFile.open(zip_file_path).size.should == 4
+ ::Zip::File.open(zip_file_path).size.should == 4
end
it "should return a zip file with 6 kml files" do
subject.export(zip_file_path, {:export_id => 1, :o => "line", :id => "#{line.id},#{line2.id}" } )
File.exists?(zip_file_path).should be_true
- ::Zip::ZipFile.open(zip_file_path).size.should == 6
+ ::Zip::File.open(zip_file_path).size.should == 6
end
it "should return a zip file with 6 kml files" do
subject.export(zip_file_path, {:export_id => 1, :o => "", :id => "" } )
File.exists?(zip_file_path).should be_true
- ::Zip::ZipFile.open(zip_file_path).size.should == 6
+ ::Zip::File.open(zip_file_path).size.should == 6
end
end
diff --git a/spec/requests/referentials_spec.rb b/spec/requests/referentials_spec.rb
index c57192d9b..975248375 100644
--- a/spec/requests/referentials_spec.rb
+++ b/spec/requests/referentials_spec.rb
@@ -8,7 +8,7 @@ describe "Referentials" do
it "should support no referential" do
visit referentials_path
- page.should have_content("Espace de Données")
+ page.should have_content("Espaces de Données")
end
context "when several referentials exist" do