spec/active_yaml/aliases_spec.rb
# As Ruby < 1.9.3 uses the Sych YAML engine
# it includes a bug whereby an aliased value is treated as a string
# we just skip over this issue because it's a Ruby bug
As Ruby < 1.9.3 uses the Sych YAML engine
it includes a bug whereby an aliased value is treated as a string
we just skip over this issue because it's a Ruby bug
As Ruby < 1 . 9 . 3 uses the Sych YAML engine it includes a bug whereby an aliased value is treated as a string we just skip over this issue because it ' s a Ruby bug
def check_price(price, expectation)
    if RubyVersion < '1.9.3'
      price.to_f.should == 1.0
    else
      price.should == 1.0
    end
  end
def check_price ( price , expectation ) if RubyVersion < '1.9.3' price . to_f . should == 1.0 else price . should == 1.0 end end
As Ruby < 1.9.3 uses the Sych YAML engine
it includes a bug whereby an aliased value is treated as a string
we just skip over this issue because it's a Ruby bug
As Ruby < 1 . 9 . 3 uses the Sych YAML engine it includes a bug whereby an aliased value is treated as a string we just skip over this issue because it ' s a Ruby bug
price
expectation