Sha256: 991666b709184a1d0d5218e4f0e78a4c4fa4c9c933a39061e67aaf34b68749cc
Contents?: true
Size: 402 Bytes
Versions: 4
Compression:
Stored size: 402 Bytes
Contents
require 'spec_helper' module Alf describe Relation, 'to_ruby_literal' do let(:type){ Relation[name: String, status: Integer] } subject{ type.to_ruby_literal } it 'should be human friendly' do subject.should eq("Alf::Relation[{:name => String, :status => Integer}]") end it 'should allow eval roundtrip' do ::Kernel.eval(subject).should eq(type) end end end
Version data entries
4 entries across 4 versions & 1 rubygems