Sha256: f8504b2ceb5630b5dd907aa8115ce15d09887756d2f8d9840570dfca95616ffe
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 Bytes
Contents
# encoding: UTF-8 require 'spec_helper' describe Esearch::Command, '.run' do subject { object.run(*arguments) } let(:object) { described_class } let(:instance) { double('Instance', result: result) } let(:result) { double('Result') } let(:arguments) { [:foo, :bar] } it 'should instantiate object and return result' do described_class.should_receive(:new).with(*arguments).and_return(instance) should be(result) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
esearch-0.2.2 | spec/unit/esearch/command/class_methods/run_spec.rb |