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

Version Path
riddle-1.0.11 spec/riddle/auto_version_spec.rb
riddle-1.0.10 spec/riddle/auto_version_spec.rb
riddle-1.0.9 spec/riddle/auto_version_spec.rb
riddle-1.0.8 spec/riddle/auto_version_spec.rb
riddle-1.0.7 spec/riddle/auto_version_spec.rb
riddle-1.0.6 spec/riddle/auto_version_spec.rb
riddle-1.0.5 spec/riddle/auto_version_spec.rb
riddle-1.0.4 spec/riddle/auto_version_spec.rb