Sha256: d6a0d1a744d048376cec04611b157804f3e34a6d85714db941bff233e59c8ae4

Contents?: true

Size: 652 Bytes

Versions: 2

Compression:

Stored size: 652 Bytes

Contents

require 'spec_helper'

describe Dojefiy do
  subject { Dojefiy.new }

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

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

    it 'combines nouns with doje adjectives' do
      expect(output).to match /(so|very|much|such|many) grandma\./i
      expect(output).to match /(so|very|much|such|many) sweater\./i
      expect(output).to match /(so|very|much|such|many) christmas\./i
    end

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

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dojefiy-1.1.0 spec/dojefiy_spec.rb
dojefiy-1.0.0 spec/dojefiy_spec.rb