Skip to content

Commit

Permalink
Update schemas submodule to v0.9.0
Browse files Browse the repository at this point in the history
Updated tests to use v0.9.0
  • Loading branch information
jlblcc committed Nov 11, 2014
1 parent 7674662 commit 76e40a3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "test/schemas/v0_8"]
path = test/schemas/v0_8
[submodule "test/schemas/v0_9"]
path = test/schemas/v0_9
url = https://github.com/adiwg/adiwg-json-schemas.git
1 change: 0 additions & 1 deletion test/schemas/v0_8
Submodule v0_8 deleted from 2a7591
1 change: 1 addition & 0 deletions test/schemas/v0_9
Submodule v0_9 added at f362be
6 changes: 3 additions & 3 deletions test/tc_translation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
require 'json'
require File.join(File.expand_path('..', __FILE__),'..','lib', 'adiwg-mdtranslator.rb')

class TestTranslation_v0_8 < MiniTest::Unit::TestCase
class TestTranslation_v0_9 < MiniTest::Unit::TestCase
@@reader = 'adiwgJson'
@@writer = 'iso19115_2'

def test_ouput_success
# read test adiwg full json test
file = File.open(File.join(File.dirname(__FILE__),'schemas','v0_8','examples','full_example.json'), 'r')
file = File.open(File.join(File.dirname(__FILE__),'schemas','v0_9','examples','full_example.json'), 'r')
jsonObj = file.read
file.close

Expand All @@ -38,7 +38,7 @@ def test_ouput_success

def test_minimum
# read test adiwg minimum json test
file = File.open(File.join(File.dirname(__FILE__),'schemas','v0_8','examples','minimum_example.json'), 'r')
file = File.open(File.join(File.dirname(__FILE__),'schemas','v0_9','examples','minimum_example.json'), 'r')
jsonObj = file.read
file.close

Expand Down

0 comments on commit 76e40a3

Please sign in to comment.