Sha256: a1a37aee466a0d69e27f6b52d2c26eee175f51faab2e276e54d96eec9d4f1266

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

require "spec_helper"

shared_examples_for 'a selector' do
  let(:selector) { described_class.new(:function) }
  let(:data) { FactoryGirl.build(:data) }

  it "should return a FeatureVector object" do
    selector.generate_vector(data).should be_a(FeatureVector)
  end
  it "should create and array with 0 and 1's" do
    vector = selector.generate_vector(data)
    vector.data.each do |e|
      [0,1].should include(e)
    end
  end
  it "should respond to generate_vectors" do
    selector.should respond_to(:generate_vectors)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
svm_helper-0.2.1 spec/support/selector_spec.rb