Sha256: bfc618b0ad3c67120b91f290a7c3769c3f49bf1b7f233f807d0fcbab6ee89120

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

[:standard_deviation, :stddev].each do |method|
  describe Aggregate::StandardDeviation::Methods, "##{method}" do
    subject { object.send(method) }

    let(:described_class) { Class.new { include Aggregate::StandardDeviation::Methods } }
    let(:object)          { described_class.new.freeze                                  }

    it { should be_instance_of(Aggregate::StandardDeviation) }

    its(:operand) { should be(object) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/aggregate/standard_deviation/methods/standard_deviation_spec.rb
axiom-0.1.1 spec/unit/axiom/aggregate/standard_deviation/methods/standard_deviation_spec.rb