Skip to content

Commit 1de3c5d

Browse files
committed
include 1.3.0 in helpers and specs
1 parent 7dd7ee6 commit 1de3c5d

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

schemas/tlc/1.3.0/rsmp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name" : "tlc",
33
"description" : "Traffic Light Controllers",
4-
"version" : "1.3.0",
4+
"version" : "1.2.1",
55
"allOf" : [
66
{
77
"if" : {

schemas/tlc/1.3.0/sxl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
meta:
33
name: tlc
44
description: Traffic Light Controllers
5-
version: 1.3.0
5+
version: 1.2.1
66
objects:
77
Traffic Light Controller:
88
description:

spec/schemer_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
'1.0.15',
2929
'1.1.0',
3030
'1.2.0',
31-
'1.2.1'
31+
'1.2.1',
32+
'1.3.0'
3233
].each do |version|
3334
$schemers['tlc'][version] = JSONSchemer.schema( Pathname.new("schemas/tlc/#{version}/rsmp.json") )
3435
end

spec/schemer_spec.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,18 @@
2626
expect(RSMP::Schema.has_schema?(:tlc,'1.1.0')).to be(true)
2727
expect(RSMP::Schema.has_schema?(:tlc,'1.2.0')).to be(true)
2828
expect(RSMP::Schema.has_schema?(:tlc,'1.2.1')).to be(true)
29-
expect(RSMP::Schema.has_schema?(:tlc,'1.2.2')).to be(false)
29+
expect(RSMP::Schema.has_schema?(:tlc,'1.3.0')).to be(true)
30+
expect(RSMP::Schema.has_schema?(:tlc,'1.3.1')).to be(false)
3031
end
3132

3233
it 'provides schema versions' do
3334
expect(RSMP::Schema.core_versions).to eq(["3.1.2", "3.1.3", "3.1.4", "3.1.5", "3.2.0", "3.2.1", "3.2.2"])
3435
expect(RSMP::Schema.earliest_core_version).to eq("3.1.2")
3536
expect(RSMP::Schema.latest_core_version).to eq("3.2.2")
3637

37-
expect(RSMP::Schema.versions(:tlc)).to eq(["1.0.7", "1.0.8", "1.0.9", "1.0.10", "1.0.13", "1.0.14", "1.0.15", "1.1.0", "1.2.0", "1.2.1"])
38+
expect(RSMP::Schema.versions(:tlc)).to eq(["1.0.7", "1.0.8", "1.0.9", "1.0.10", "1.0.13", "1.0.14", "1.0.15", "1.1.0", "1.2.0", "1.2.1", "1.3.0"])
3839
expect(RSMP::Schema.earliest_version(:tlc)).to eq("1.0.7")
39-
expect(RSMP::Schema.latest_version(:tlc)).to eq("1.2.1")
40+
expect(RSMP::Schema.latest_version(:tlc)).to eq("1.3.0")
4041

4142
end
4243

@@ -93,7 +94,7 @@
9394
path = File.expand_path( File.join(__dir__,'..','schemas','tlc') )
9495
RSMP::Schema.load_schema_type type, path
9596
expect(RSMP::Schema.schema_types).to eq([:core,:tlc,:custom])
96-
expect(RSMP::Schema.versions(type)).to eq(["1.0.7", "1.0.8", "1.0.9", "1.0.10", "1.0.13", "1.0.14", "1.0.15", "1.1.0", "1.2.0", "1.2.1"])
97+
expect(RSMP::Schema.versions(type)).to eq(["1.0.7", "1.0.8", "1.0.9", "1.0.10", "1.0.13", "1.0.14", "1.0.15", "1.1.0", "1.2.0", "1.2.1", "1.3.0"])
9798

9899
expect {
99100
RSMP::Schema.load_schema_type type, path # should complain that type is already loaded
@@ -111,7 +112,7 @@
111112

112113
describe "#sanitize" do
113114
it 'works' do
114-
expect(RSMP::Schema.sanitize_version('1.2.1')).to eq('1.2.1')
115+
expect(RSMP::Schema.sanitize_version('1.3.0')).to eq('1.3.0')
115116
end
116117
end
117118
end

spec/tlc/S0003_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
it 'accepts valid S0003 status reqeust, extendedinputstatus' do
2727
expect( validate(message_extended,'tlc') ).to eq(
28-
{["1.2.0","1.2.1"]=>[["/sS/1/n", "enum"]]}
28+
{["1.2.0","1.2.1","1.3.0"]=>[["/sS/1/n", "enum"]]}
2929
)
3030
end
3131
end

spec/tlc/S0018_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
it 'accepts valid status request for sxl < 1.2' do
1515
expect( validate(message,'tlc') ).to eq(
16-
["1.2.0", "1.2.1"] => [["/sS/0/sCI", "enum"]]
16+
["1.2.0", "1.2.1","1.3.0"] => [["/sS/0/sCI", "enum"]]
1717
)
1818
end
1919
end

0 commit comments

Comments
 (0)