Sha256: 8714ae2e0ef9c50d0435dd0e7e15ec3cd809232cc932a09425cc716e2526941f

Contents?: true

Size: 596 Bytes

Versions: 1

Compression:

Stored size: 596 Bytes

Contents

require 'spec_helper'

describe Dogerific do 
  subject { Dogerific.new }

  describe '#convert' do 
    let(:input) { 'My grandmom gave me a sweater for Christmas' }
    let(:output) { subject.convert(input) }

    it 'converts to lowercase' do 
      expect(output.downcase).to eq output
    end

    it 'combines nouns with doge adjectives' do 
      expect(output).to match /so grandmom\./i 
      expect(output).to match /such sweater\./i 
      expect(output).to match /very christmas\./i
    end

    it 'always appends "wow."' do 
      expect(output).to end_with 'wow.'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dogerific-0.1.0 spec/dogerific_spec.rb