Sha256: ad0b02838afd7a3b97c8901f5f307f6447fb25779c7b2fe3b3b30f6f4673fee4

Contents?: true

Size: 272 Bytes

Versions: 13

Compression:

Stored size: 272 Bytes

Contents

require 'spec_helper'

describe Virtus::Coercion::TrueClass, '.to_string' do
  subject { object.to_string(true_class) }

  let(:object)     { described_class }
  let(:true_class) { true            }

  it { should be_instance_of(String) }

  it { should eql('true') }
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
virtus-0.5.5 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.5.4 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.5.3 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/virtus-0.5.2/spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.5.2 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.5.1 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.5.0 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.4.2 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.4.1 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.4.0 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.3.0 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.2.0 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.1.0 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb