Sha256: c6e3166c705567298ff02f771d440e86f0a4b79a70feb740a4f7be7874150371
Contents?: true
Size: 985 Bytes
Versions: 4
Compression:
Stored size: 985 Bytes
Contents
require 'spec/spec_helper' describe Riddle::AutoVersion do describe '.configure' do before :each do @controller = Riddle::Controller.new stub('configuration'), 'sphinx.conf' Riddle::Controller.stub!(:new => @controller) end it "should require 0.9.8 if that is the known version" do Riddle::AutoVersion.should_receive(:require).with('riddle/0.9.8') @controller.stub!(:sphinx_version => '0.9.8') Riddle::AutoVersion.configure end it "should require 0.9.9 if that is the known version" do Riddle::AutoVersion.should_receive(:require).with('riddle/0.9.9') @controller.stub!(:sphinx_version => '0.9.9') Riddle::AutoVersion.configure end it "should require 1.10 if that is the known version" do Riddle::AutoVersion.should_receive(:require).with('riddle/1.10') @controller.stub!(:sphinx_version => '1.10-beta') Riddle::AutoVersion.configure end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
riddle-1.2.1 | spec/riddle/auto_version_spec.rb |
riddle-1.2.0 | spec/riddle/auto_version_spec.rb |
riddle-1.1.0 | spec/riddle/auto_version_spec.rb |
riddle-1.0.12 | spec/riddle/auto_version_spec.rb |