Sha256: 6c04c0064bcea52363d646f4bac4f0baeffd22a57cde60569d373cca03a794eb

Contents?: true

Size: 271 Bytes

Versions: 5

Compression:

Stored size: 271 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

5 entries across 5 versions & 1 rubygems

Version Path
virtus-0.0.10 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.0.9 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.0.8 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.0.7 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb
virtus-0.0.6 spec/unit/virtus/coercion/true_class/class_methods/to_string_spec.rb