Sha256: c4f847130ff7976934781ea3ba8977d43abb1073c0216dc6a436c0037a182afd

Contents?: true

Size: 361 Bytes

Versions: 10

Compression:

Stored size: 361 Bytes

Contents

require 'spec_helper'

describe Mulder::Formats::Human do

  describe '#output' do
    it 'calls ap with the correct stuff' do
      mocked_instances = mock(collect: [{ foo: :bar }])
      formatter = described_class.new(mocked_instances)
      formatter.expects(:ap).with([{ foo: :bar }], { index: false, sort: true })
      formatter.output
    end
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mulder-0.4.0 spec/lib/mulder/formats/human_spec.rb
mulder-0.3.2 spec/lib/mulder/formats/human_spec.rb
mulder-0.3.1 spec/lib/mulder/formats/human_spec.rb
mulder-0.3.0 spec/lib/mulder/formats/human_spec.rb
mulder-0.2.1 spec/lib/mulder/formats/human_spec.rb
mulder-0.2.0 spec/lib/mulder/formats/human_spec.rb
mulder-0.1.0 spec/lib/mulder/formats/human_spec.rb
mulder-0.0.5 spec/lib/mulder/formats/human_spec.rb
mulder-0.0.4 spec/lib/mulder/formats/human_spec.rb
mulder-0.0.3 spec/lib/mulder/formats/human_spec.rb