Skip to content

Commit b553077

Browse files
committed
fix tests
1 parent dba6f0e commit b553077

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

test/unit/gtt_map_test.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ class GttMapTest < ActiveSupport::TestCase
66
@ts = GttTileSource.create! name: 'test', type: 'ol.source.OSM'
77
end
88

9-
10-
test 'should check arguments' do
11-
assert_raise(ArgumentError){ GttMap.new layers: [@ts] }
12-
end
13-
149
test 'should compute json from wkb' do
1510
wkb = "01030000000100000006000000C84B374110E76040381DD011545A4140C84B3739ACE96040F07E6DCC7A594140C84B37F199E960403CBC2D58E2554140C84B373917E8604098CBC3E188564140C84B37FD36E66040F24C2E959D564140C84B374110E76040381DD011545A4140"
1611
m = GttMap.new layers: [@ts], wkb: wkb

test/unit/update_project_settings_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ class UpdateProjectSettingsTest < ActiveSupport::TestCase
66
test 'should save tile sources' do
77
p = Project.find 'ecookbook'
88
ts = GttTileSource.create! name: 'test', type: 'ol.source.OSM'
9-
form = GttConfiguration.for(p).from_params gtt_tile_source_ids: [ ts.id ]
9+
form = GttConfiguration.from_params gtt_tile_source_ids: [ ts.id ]
10+
form.project = p
1011
r = RedmineGtt::Actions::UpdateProjectSettings.( form )
1112

1213
assert r.settings_saved?

0 commit comments

Comments
 (0)