Sha256: 99b629bf45d8c561d79eead9c2a7ff620c52503f98140e07b0688f5102416b19

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

require 'spec_helper'

describe String do
  subject { 'My grandmom gave me a sweater for Christmas.' }

  describe '#dogerific' do
    let(:options) { { ignore: [] } }
    let(:output) { subject.dogerific(options) }

    it 'delegates to Dogerific#convert' do
      expect_any_instance_of(Dogerific).to receive(:convert).with(subject, options)
      output
    end

    it 'returns a string' do
      expect(output).to be_a String
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dogerific-0.1.0 spec/core_ext/string_spec.rb