Skip to content

Commit

Permalink
Changes geojson_spec to use the configured ogr2ogr binary
Browse files Browse the repository at this point in the history
  • Loading branch information
acarrera42 committed Dec 18, 2017
1 parent 4887f7b commit d0688a0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions services/importer/spec/acceptance/geojson_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
include AcceptanceHelpers
include_context "no stats"

let :ogr2ogr2_options do
{
ogr2ogr_binary: Cartodb.config[:ogr2ogr]['binary']
}
end

before(:all) do
@user = create_user
@user.save
Expand All @@ -39,6 +45,7 @@
log: CartoDB::Importer2::Doubles::Log.new(@user),
user: @user
})
runner.loader_options = ogr2ogr2_options
runner.run
end

Expand All @@ -52,6 +59,7 @@
log: CartoDB::Importer2::Doubles::Log.new(@user),
user: @user
})
runner.loader_options = ogr2ogr2_options
runner.run
end

Expand All @@ -64,6 +72,7 @@
log: CartoDB::Importer2::Doubles::Log.new(@user),
user: @user
})
runner.loader_options = ogr2ogr2_options
runner.run

runner.results.first.error_code.should eq 1002
Expand Down

0 comments on commit d0688a0

Please sign in to comment.