Sha256: 3e11e9b017732bb08953953b1ed9e3b46f26919c53f2c2b91afe6132f96d2535

Contents?: true

Size: 332 Bytes

Versions: 5

Compression:

Stored size: 332 Bytes

Contents

require File.join(__FILE__.gsub(/(.*)?\/spec\/.*$/, '\1'), 'spec/spec_helper')

describe Rtml::State::VariableMapping do
  %w(datetime datetime_start itid model os part_number serial_number).each do |var|
    it "should map tmlvar:terminal.#{var} to state.#{var}" do
      subject["terminal.#{var}"].should == var
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rtml-2.0.4 spec/models/rtml/state/variable_mapping_spec.rb
rtml-2.0.3 spec/models/rtml/state/variable_mapping_spec.rb
rtml-2.0.2 spec/models/rtml/state/variable_mapping_spec.rb
rtml-2.0.1 spec/models/rtml/state/variable_mapping_spec.rb
rtml-2.0.0.alpha.1 spec/models/rtml/state/variable_mapping_spec.rb