Sha256: b1a2a25538876ed79394e558330ba132184398fe4670487b2ed8a0b9494ca0ca

Contents?: true

Size: 353 Bytes

Versions: 2

Compression:

Stored size: 353 Bytes

Contents

require 'spec_helper'

describe Werd::Reports::Basic do
  let(:words) { verify_contracted_instance_method(Werd::ProjectWordCounter, :words, [
    ['words', 1236],
    ['some', 5],
  ]) }

  let(:report) { Werd::Reports::Basic.new(words) }

  describe "#to_s" do
    subject { report.to_s }
    it { is_expected.to eq "1236 words\n   5 some" }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
werd-0.0.2 spec/lib/werd/reports/basic_spec.rb
werd-0.0.1 spec/lib/werd/reports/basic_spec.rb