Sha256: cdf45de90cd0350497b39855a8d18678b3d5297aeba4a12af7a31f51b6ef54d8

Contents?: true

Size: 1.13 KB

Versions: 30

Compression:

Stored size: 1.13 KB

Contents

# # encoding: utf-8
# require 'spec_helper'
# 
# describe Solr::SchemaGenerator do
# 
#   before(:each) do
#     @types = double :types
#     @configuration = double :configuration, :types => @types
#     @generator = Solr::SchemaGenerator.new @configuration
#   end
# 
#   describe 'bound_field_names' do
#     before(:each) do
#       @generator.stub :combine_field_names => :some_field_names
#     end
#     it 'should bind field_names' do
#       b = @generator.bound_field_names
# 
#       eval('field_names', b).should == :some_field_names
#     end
#   end
# 
#   describe 'generate' do
#     before(:each) do
#       @generator.stub :bound_field_names
#       @generator.stub :generate_schema_for
#     end
#     it 'should receive generate_schema_for once with the result of extract_binding' do
#       @generator.stub :bound_field_names => :some_binding
# 
#       @generator.should_receive(:generate_schema_for).once.with :some_binding
# 
#       @generator.generate
#     end
#     it 'should extract the binding' do
#       @generator.should_receive(:bound_field_names).once.with no_args
# 
#       @generator.generate
#     end
#   end
# 
# end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
picky-4.31.3 spec/lib/solr/schema_generator_spec.rb
picky-4.31.2 spec/lib/solr/schema_generator_spec.rb
picky-4.31.1 spec/lib/solr/schema_generator_spec.rb
picky-4.31.0 spec/lib/solr/schema_generator_spec.rb
picky-4.30.0 spec/lib/solr/schema_generator_spec.rb
picky-4.29.0 spec/lib/solr/schema_generator_spec.rb
picky-4.28.1 spec/lib/solr/schema_generator_spec.rb
picky-4.27.1 spec/lib/solr/schema_generator_spec.rb
picky-4.27.0 spec/lib/solr/schema_generator_spec.rb
picky-4.26.2 spec/lib/solr/schema_generator_spec.rb
picky-4.26.1 spec/lib/solr/schema_generator_spec.rb
picky-4.26.0 spec/lib/solr/schema_generator_spec.rb
picky-4.25.3 spec/lib/solr/schema_generator_spec.rb
picky-4.25.2 spec/lib/solr/schema_generator_spec.rb
picky-4.25.1 spec/lib/solr/schema_generator_spec.rb
picky-4.25.0 spec/lib/solr/schema_generator_spec.rb
picky-4.24.0 spec/lib/solr/schema_generator_spec.rb
picky-4.23.2 spec/lib/solr/schema_generator_spec.rb
picky-4.23.1 spec/lib/solr/schema_generator_spec.rb
picky-4.23.0 spec/lib/solr/schema_generator_spec.rb