Sha256: ef88073625ac5b4728ab86004d9ce932578e7561c33a722d7ff51d8cbd49a7ac
Contents?: true
Size: 544 Bytes
Versions: 6
Compression:
Stored size: 544 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe SQL::Generator::Literal, '#visit_enumerable' do subject { object.visit_enumerable(enumerable) } let(:described_class) { Class.new(SQL::Generator::Visitor) { include SQL::Generator::Literal } } let(:enumerable) { [ 1, 2 ].freeze } let(:object) { described_class.new } it_should_behave_like 'a generated SQL expression' its(:to_s) { should eql('(1, 2)') } end
Version data entries
6 entries across 6 versions & 2 rubygems