Sha256: 0f3cbf04dafe3499255b9cb49d6039bdc3ec42589749433cf25133834b2dac39
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
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 it "should require 1.10 if using 1.10 with 64 bit IDs" do Riddle::AutoVersion.should_receive(:require).with('riddle/1.10') @controller.stub!(:sphinx_version => '1.10-id64-beta') Riddle::AutoVersion.configure end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
riddle-1.2.2 | spec/riddle/auto_version_spec.rb |