Sha256: 559a8d15cd4ab25656fd90136eee4afd0f199cb92d5bc123e1a64617cbef9599
Contents?: true
Size: 507 Bytes
Versions: 5
Compression:
Stored size: 507 Bytes
Contents
# encoding: utf-8 require 'spec_helper' [ :size, :range ].each do |method| describe Attribute::Float, "##{method}" do subject { object.send(method) } context 'without :size option passed to constructor' do let(:object) { described_class.new(:id) } it { should eql(-Float::MAX..Float::MAX) } end context 'with :size option passed to constructor' do let(:object) { described_class.new(:id, :size => 1.0..100.0) } it { should eql(1.0..100.0) } end end end
Version data entries
5 entries across 5 versions & 2 rubygems