Sha256: 27e4238067fff7000b4ec4631dd6fc02b3f415cee050ae5328018a2be6fe81e6
Contents?: true
Size: 674 Bytes
Versions: 3
Compression:
Stored size: 674 Bytes
Contents
# frozen_string_literal: true RSpec.describe Yardcheck::TestValue do it 'just wraps normal values' do expect(described_class.process(1)).to eql(described_class.new(1)) end it 'extracts the namespace from instance doubles' do expect(described_class.process(instance_double(String))).to eql( described_class::InstanceDouble.new(String) ) end it 'extracts the name from doubles' do expect(described_class.process(double(:foo))).to eql( described_class::Double.new(:foo) ) end it 'handles anonymous doubles' do expect(described_class.process(double)).to eql( described_class::Double.new('(anonymous)') ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yardcheck-0.0.3 | spec/unit/yardcheck/test_value_spec.rb |
yardcheck-0.0.2 | spec/unit/yardcheck/test_value_spec.rb |
yardcheck-0.0.1 | spec/unit/yardcheck/test_value_spec.rb |