File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,6 @@ class GttMapTest < ActiveSupport::TestCase
6
6
@ts = GttTileSource . create! name : 'test' , type : 'ol.source.OSM'
7
7
end
8
8
9
-
10
- test 'should check arguments' do
11
- assert_raise ( ArgumentError ) { GttMap . new layers : [ @ts ] }
12
- end
13
-
14
9
test 'should compute json from wkb' do
15
10
wkb = "01030000000100000006000000C84B374110E76040381DD011545A4140C84B3739ACE96040F07E6DCC7A594140C84B37F199E960403CBC2D58E2554140C84B373917E8604098CBC3E188564140C84B37FD36E66040F24C2E959D564140C84B374110E76040381DD011545A4140"
16
11
m = GttMap . new layers : [ @ts ] , wkb : wkb
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ class UpdateProjectSettingsTest < ActiveSupport::TestCase
6
6
test 'should save tile sources' do
7
7
p = Project . find 'ecookbook'
8
8
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
10
11
r = RedmineGtt ::Actions ::UpdateProjectSettings . ( form )
11
12
12
13
assert r . settings_saved?
You can’t perform that action at this time.
0 commit comments