Sha256: f74046c28a09c7547e86bd20eb4d5dd2408f5e28a0947414e66d8258aab33a34
Contents?: true
Size: 741 Bytes
Versions: 8
Compression:
Stored size: 741 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 end end
Version data entries
8 entries across 8 versions & 1 rubygems