Sha256: 79f921db5ab881f60d433c1ce16c6ad22d356159929bb03b1cfa81301371ddce
Contents?: true
Size: 574 Bytes
Versions: 1
Compression:
Stored size: 574 Bytes
Contents
require 'spec_helper' describe Hybag do describe ".ingest" do it "should call Hybag::Ingester.ingest" do Hybag::Ingester.any_instance.should_receive(:ingest).and_return("bla") Hybag.ingest("empty") end it "should allow the ingester to be configurable" do ingesting = nil Hybag::Ingester.any_instance.should_receive(:ingest).and_return("bla") Hybag.ingest("empty") do |ingester| ingester.model_name = "TestModel" ingesting = ingester end expect(ingesting.model_name).to eq "TestModel" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hybag-0.1.0 | spec/lib/hybag_spec.rb |