Sha256: 31df64e5453df3eea394ba6204bab1b73fab5d2e83c91a74b868e98871b336cf

Contents?: true

Size: 488 Bytes

Versions: 4

Compression:

Stored size: 488 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

[ :square_root, :sqrt ].each do |method|
  describe Function::Numeric::SquareRoot::Methods, "##{method}" do
    subject { object.send(method) }

    let(:described_class) { Class.new { include Function::Numeric::SquareRoot::Methods } }
    let(:object)          { described_class.new.freeze                                   }

    it { should be_instance_of(Function::Numeric::SquareRoot) }

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/function/numeric/square_root/methods/square_root_spec.rb
veritas-0.0.7 spec/unit/veritas/function/numeric/square_root/methods/square_root_spec.rb
veritas-0.0.6 spec/unit/veritas/function/numeric/square_root/methods/square_root_spec.rb
veritas-0.0.5 spec/unit/veritas/function/numeric/square_root/methods/square_root_spec.rb