Sha256: 763cdab3bc0705e2beab2ba6592aae57839733ccde4d540e1fcac35461ed49b2

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Algebra::Summarization::Summaries, '#to_hash' do
  subject { object.to_hash }

  let(:object)      { described_class.new(header, summarizers) }
  let(:header)      { mock('Header')                           }
  let(:summarizers) { { :count => mock('Summarizer') }         }

  it 'matches the expected value' do
    key, value = subject.first
    key.should eql(:count)
    value.should be_instance_of(Algebra::Summarization::Summary)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/algebra/summarization/summaries/to_hash_spec.rb