|
26 | 26 | expect(RSMP::Schema.has_schema?(:tlc,'1.1.0')).to be(true) |
27 | 27 | expect(RSMP::Schema.has_schema?(:tlc,'1.2.0')).to be(true) |
28 | 28 | 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) |
30 | 31 | end |
31 | 32 |
|
32 | 33 | it 'provides schema versions' do |
33 | 34 | 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"]) |
34 | 35 | expect(RSMP::Schema.earliest_core_version).to eq("3.1.2") |
35 | 36 | expect(RSMP::Schema.latest_core_version).to eq("3.2.2") |
36 | 37 |
|
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"]) |
38 | 39 | 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") |
40 | 41 |
|
41 | 42 | end |
42 | 43 |
|
|
93 | 94 | path = File.expand_path( File.join(__dir__,'..','schemas','tlc') ) |
94 | 95 | RSMP::Schema.load_schema_type type, path |
95 | 96 | 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"]) |
97 | 98 |
|
98 | 99 | expect { |
99 | 100 | RSMP::Schema.load_schema_type type, path # should complain that type is already loaded |
|
111 | 112 |
|
112 | 113 | describe "#sanitize" do |
113 | 114 | 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') |
115 | 116 | end |
116 | 117 | end |
117 | 118 | end |
0 commit comments