Sha256: c0ab4dbc6e40e94a694e0a5b19adf0808a9571d317e6062e36914bff998edbfd

Contents?: true

Size: 461 Bytes

Versions: 6

Compression:

Stored size: 461 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe SQL::Generator::Literal, '.dup_frozen' do
  subject { object.dup_frozen(object_arg) }

  let(:object) { SQL::Generator::Literal }

  context 'with a frozen object' do
    let(:object_arg) { Time.now.freeze }

    it { should_not equal(object_arg) }

    it { should == object_arg }
  end

  context 'with a non-frozen object' do
    let(:object_arg) { Time.now }

    it { should equal(object_arg) }
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
axiom-sql-generator-0.2.0 spec/unit/axiom/sql/generator/literal/class_methods/dup_frozen_spec.rb
axiom-sql-generator-0.1.0 spec/unit/axiom/sql/generator/literal/class_methods/dup_frozen_spec.rb
veritas-sql-generator-0.0.7 spec/unit/veritas/sql/generator/literal/class_methods/dup_frozen_spec.rb
veritas-sql-generator-0.0.6 spec/unit/veritas/sql/generator/literal/class_methods/dup_frozen_spec.rb
veritas-sql-generator-0.0.5 spec/unit/veritas/sql/generator/literal/class_methods/dup_frozen_spec.rb
veritas-sql-generator-0.0.4 spec/unit/veritas/sql/generator/literal/class_methods/dup_frozen_spec.rb