rspec-thinking-sphinx-matchers 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ rvm:
3
+ - "1.9.2"
4
+ - "1.9.3"
5
+ script: bundle exec rspec spec
6
+ services: mysql
7
+ before_script:
8
+ - mysql -e 'create database rspec_thinking_sphinx_matchers;'
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rspec-thinking-sphinx-matchers.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Govinda Fichtner
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # Rspec Thinking Sphinx matchers
2
+ [![Build Status](https://travis-ci.org/Govinda-Fichtner/rspec-thinking-sphinx-matchers.png?branch=master)](https://travis-ci.org/Govinda-Fichtner/rspec-thinking-sphinx-matchers)
3
+
4
+ Test your Thinking Sphinx 3 index defintions with the custom rspec matchers of this gem.
5
+
6
+ If you are still using Thinking Sphinx 2 have a look at https://github.com/fuzzyalej/thinking-sphinx-rspec-matchers
7
+
8
+ I would appreciate feedback very much, in the form of comments, code and/or beer! :-)
9
+
10
+
11
+ # Installation
12
+ To install the matchers you only have to add the gem to your test group in `Gemfile`:
13
+
14
+ group :test do
15
+ gem 'rspec-thinking-sphinx-matchers'
16
+ end
17
+
18
+ And then execute:
19
+
20
+ $ bundle
21
+
22
+ # Use
23
+ describe "fields" do
24
+ it { should index :name, :from => :client, :as => :client_name }
25
+ it { should index :content }
26
+ end
27
+
28
+ describe "attributes" do
29
+ it { should have_attribute :user_id, :as => :users }
30
+ end
31
+
32
+ Field options
33
+
34
+ :from
35
+ :as
36
+ :facet
37
+ :sortable
38
+
39
+ Attribute Field options
40
+
41
+ :from
42
+ :as
43
+ :facet
44
+
45
+
46
+ # Testing
47
+ If you are feeling brave and want to test the gem, simply issue a `bundle exec rspec`. Contributions and enhancements and mostly welcomed!
48
+
49
+
50
+ # References
51
+ [1] https://github.com/fuzzyalej/thinking-sphinx-rspec-matchers
52
+ [2] http://openmonkey.com/2009/07/19/thinking-sphinx-rspec-matchers/
53
+ [3] https://gist.github.com/21755
54
+
55
+
56
+ # Credits
57
+ Thanks to Pal Allan from http://freelancing-gods.com/ for creating Thinking Sphinx!
58
+
59
+ Thanks to Alejandro Andrés for the rspec matchers for ThinkingSphinx v2.
60
+
61
+
62
+ ## Contributing
63
+
64
+ 1. Fork it
65
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
66
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
67
+ 4. Push to the branch (`git push origin my-new-feature`)
68
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,6 @@
1
+ require "rspec-thinking-sphinx-matchers/version"
2
+ require "active_support/concern"
3
+ require_relative "rspec-thinking-sphinx-matchers/thinking_sphinx_example_group"
4
+ require_relative "rspec-thinking-sphinx-matchers/index_matcher"
5
+ require_relative "rspec-thinking-sphinx-matchers/field_matcher"
6
+ require_relative "rspec-thinking-sphinx-matchers/attribute_matcher"
@@ -0,0 +1,43 @@
1
+ module RspecThinkingSphinxMatchers
2
+ class HaveAttribute
3
+ def initialize(expected, args=nil)
4
+ args ||= {}
5
+
6
+ @expected = expected
7
+ @from = Array(args[:from])
8
+ @facet = args[:facet] || false
9
+ @as = args[:as]
10
+ end
11
+
12
+ def matches?(index)
13
+ @index = index
14
+
15
+ if @index.class == ThinkingSphinx::ActiveRecord::Index
16
+ @index.sources.first.attributes.select {|a|
17
+ a.columns.first.__name == @expected &&
18
+ a.columns.first.__stack == @from &&
19
+ a.options[:as] == @as &&
20
+ (a.options[:facet].nil? ? (@facet == true ? false : true) : (a.options[:facet] == @facet))
21
+ }.count == 1
22
+ else
23
+ false
24
+ end
25
+ end
26
+
27
+ def failure_message_for_should
28
+ "expected #{@index} index to have an attribute for #{@expected}"
29
+ end
30
+
31
+ def failure_message_for_should_not
32
+ "expected #{@index} index not to define an attribute for #{@expected}"
33
+ end
34
+
35
+ def description
36
+ "have a search attribute for #{@as || @expected}"
37
+ end
38
+ end
39
+
40
+ def have_attribute(expected, args=nil)
41
+ HaveAttribute.new(expected, args)
42
+ end
43
+ end
@@ -0,0 +1,44 @@
1
+ module RspecThinkingSphinxMatchers
2
+ class HaveField
3
+ def initialize(expected, args=nil)
4
+ args ||= {}
5
+ @expected = expected
6
+ @from = Array(args[:from])
7
+ @sortable = args[:sortable] || false
8
+ @facet = args[:facet] || false
9
+ @as = args[:as]
10
+ end
11
+
12
+ def matches?(index)
13
+ @index = index
14
+
15
+ if @index.class == ThinkingSphinx::ActiveRecord::Index
16
+ @index.sources.first.fields.select {|f|
17
+ f.columns.first.__name == @expected &&
18
+ f.columns.first.__stack == @from &&
19
+ f.options[:as] == @as &&
20
+ (f.options[:sortable].nil? ? (@sortable == true ? false : true) : (f.options[:sortable] == @sortable)) &&
21
+ (f.options[:facet].nil? ? (@facet == true ? false : true) : (f.options[:facet] == @facet))
22
+ }.count == 1
23
+ else
24
+ false
25
+ end
26
+ end
27
+
28
+ def failure_message_for_should
29
+ "expected #{@index} index to define a field for #{@expected}"
30
+ end
31
+
32
+ def failure_message_for_should_not
33
+ "expected #{@index} index not to define a field for #{@expected}"
34
+ end
35
+
36
+ def description
37
+ "have an index field for #{@as || @expected}"
38
+ end
39
+ end
40
+
41
+ def index(expected, args=nil)
42
+ HaveField.new(expected, args)
43
+ end
44
+ end
@@ -0,0 +1,29 @@
1
+ module RspecThinkingSphinxMatchers
2
+ class DefineAnIndex
3
+ def matches?(index)
4
+ @index = index
5
+
6
+ if @index.class == ThinkingSphinx::ActiveRecord::Index
7
+ true
8
+ else
9
+ false
10
+ end
11
+ end
12
+
13
+ def failure_message_for_should
14
+ "expected #{@index} to define an index"
15
+ end
16
+
17
+ def failure_message_for_should_not
18
+ "expected #{@index} not to define an index"
19
+ end
20
+
21
+ def description
22
+ "define an index"
23
+ end
24
+ end
25
+
26
+ def define_an_index
27
+ DefineAnIndex.new
28
+ end
29
+ end
@@ -0,0 +1,18 @@
1
+ module ThinkingSphinxExampleGroup
2
+ extend ::ActiveSupport::Concern
3
+
4
+ RSpec.configure do |config|
5
+ config.include self,
6
+ :type => :thinking_sphinx_indices,
7
+ :example_group => { :file_path => %r(spec/indices) }
8
+ end
9
+
10
+ included do
11
+ include RspecThinkingSphinxMatchers
12
+
13
+ metadata[:type] = :thinking_sphinx_indices
14
+
15
+ let(:configuration){ ThinkingSphinx::Configuration.instance }
16
+ subject{ configuration.indices_for_references(example.metadata[:described_class].to_s.downcase.to_sym).first }
17
+ end
18
+ end
@@ -0,0 +1,3 @@
1
+ module RspecThinkingSphinxMatchers
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,26 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'rspec-thinking-sphinx-matchers/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "rspec-thinking-sphinx-matchers"
8
+ gem.version = RspecThinkingSphinxMatchers::VERSION
9
+ gem.authors = ["Govinda Fichtner"]
10
+ gem.email = ["govinda@beagile.de"]
11
+ gem.description = %q{Rspec matchers for thinking sphinx index definition}
12
+ gem.summary = %q{Rspec matchers for thinking sphinx index definition}
13
+ gem.homepage = ""
14
+
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
+ gem.require_paths = ["lib"]
19
+
20
+ gem.add_development_dependency "rake"
21
+ gem.add_development_dependency "rspec"
22
+ gem.add_development_dependency 'combustion', "~> 0.4.0"
23
+ gem.add_development_dependency "mysql2"
24
+ gem.add_runtime_dependency "rspec"
25
+ gem.add_runtime_dependency "thinking-sphinx", "~>3.0"
26
+ end
@@ -0,0 +1,15 @@
1
+ ThinkingSphinx::Index.define :user, :with => :active_record do
2
+ indexes name
3
+ indexes email
4
+ indexes description, :as => :profile
5
+ indexes city, :sortable => true
6
+ indexes year_of_birth, :facet => true
7
+ indexes country.name
8
+ indexes children(:name), :as => :child_name
9
+
10
+ has status
11
+ has finance_id, :as => :tax_id
12
+ has created_at, :facet => true
13
+ has country(:id), :as => :country_id
14
+ has city.zip
15
+ end
@@ -0,0 +1,2 @@
1
+ class User < ActiveRecord::Base
2
+ end
@@ -0,0 +1,10 @@
1
+ test:
2
+ adapter: mysql2
3
+ encoding: utf8
4
+ reconnect: false
5
+ database: rspec_thinking_sphinx_matchers
6
+ pool: 5
7
+ username: root
8
+ password:
9
+ host: localhost
10
+
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ #
3
+ end
@@ -0,0 +1,4 @@
1
+ ActiveRecord::Schema.define do
2
+ create_table(:users, :force => true) do |t|
3
+ end
4
+ end
@@ -0,0 +1 @@
1
+ *.log
File without changes
@@ -0,0 +1,62 @@
1
+ require 'spec_helper'
2
+
3
+ describe RspecThinkingSphinxMatchers::HaveAttribute do
4
+ let(:index) { ThinkingSphinx::Configuration.instance.indices_for_references(:user).first }
5
+
6
+ it_should_behave_like "a rspec matcher", RspecThinkingSphinxMatchers::HaveAttribute.new(:some_attribute)
7
+
8
+ it "should match a defined attribute" do
9
+ matcher = RspecThinkingSphinxMatchers::HaveAttribute.new(:status)
10
+
11
+ matcher.matches?(index).should be_true
12
+ end
13
+
14
+ it "should match a defined field with an :as option" do
15
+ matcher = RspecThinkingSphinxMatchers::HaveAttribute.new(:finance_id, :as => :tax_id)
16
+
17
+ matcher.matches?(index).should be_true
18
+ end
19
+
20
+ it "should match a defined field with a :facet option" do
21
+ matcher = RspecThinkingSphinxMatchers::HaveAttribute.new(:created_at, :facet => true)
22
+
23
+ matcher.matches?(index).should be_true
24
+ end
25
+
26
+ it "should match a defined field from an associated model with bracket notation" do
27
+ matcher = RspecThinkingSphinxMatchers::HaveAttribute.new(:id, :from => :country, :as => :country_id)
28
+
29
+ matcher.matches?(index).should be_true
30
+ end
31
+
32
+ it "should match a defined field from an associated model with dot notation" do
33
+ matcher = RspecThinkingSphinxMatchers::HaveAttribute.new(:zip, :from => :city)
34
+
35
+ matcher.matches?(index).should be_true
36
+ end
37
+
38
+ it "should not match a defined attribute without :as options" do
39
+ matcher = RspecThinkingSphinxMatchers::HaveAttribute.new(:status, :as => :something)
40
+
41
+ matcher.matches?(index).should_not be_true
42
+ end
43
+
44
+ it "should not match a defined attribute without associated model" do
45
+ matcher = RspecThinkingSphinxMatchers::HaveAttribute.new(:status, :from => :client)
46
+
47
+ matcher.matches?(index).should_not be_true
48
+ end
49
+
50
+ it "should not match a defined field without :facet options" do
51
+ matcher = RspecThinkingSphinxMatchers::HaveAttribute.new(:status, :facet => true)
52
+
53
+ matcher.matches?(index).should_not be_true
54
+ end
55
+
56
+ it "should not match an undefined field" do
57
+ matcher = RspecThinkingSphinxMatchers::HaveAttribute.new(:client_id)
58
+
59
+ matcher.matches?(index).should_not be_true
60
+ end
61
+
62
+ end
@@ -0,0 +1,79 @@
1
+ require 'spec_helper'
2
+
3
+ describe RspecThinkingSphinxMatchers::HaveField do
4
+ let(:index) { ThinkingSphinx::Configuration.instance.indices_for_references(:user).first }
5
+
6
+ it_should_behave_like "a rspec matcher", RspecThinkingSphinxMatchers::HaveField.new(:some_field)
7
+
8
+ it "should match a defined field" do
9
+ matcher = RspecThinkingSphinxMatchers::HaveField.new(:name)
10
+
11
+ matcher.matches?(index).should be_true
12
+ end
13
+
14
+ it "should match a defined field with an :as option" do
15
+ matcher = RspecThinkingSphinxMatchers::HaveField.new(:description, :as => :profile)
16
+
17
+ matcher.matches?(index).should be_true
18
+ end
19
+
20
+ it "should match a defined field with a :sortable option" do
21
+ matcher = RspecThinkingSphinxMatchers::HaveField.new(:city, :sortable => true)
22
+
23
+ matcher.matches?(index).should be_true
24
+ end
25
+
26
+ it "should match a defined field with a :facet option" do
27
+ matcher = RspecThinkingSphinxMatchers::HaveField.new(:year_of_birth, :facet => true)
28
+
29
+ matcher.matches?(index).should be_true
30
+ end
31
+
32
+ it "should match a defined field from an associated model with dot notation" do
33
+ matcher = RspecThinkingSphinxMatchers::HaveField.new(:name, :from => :country)
34
+
35
+ matcher.matches?(index).should be_true
36
+ end
37
+
38
+ it "should match a defined field from an associated model with bracket notation" do
39
+ matcher = RspecThinkingSphinxMatchers::HaveField.new(:name, :from => :children, :as => :child_name)
40
+
41
+ matcher.matches?(index).should be_true
42
+ end
43
+
44
+ it "should not match a defined field without :as options" do
45
+ matcher = RspecThinkingSphinxMatchers::HaveField.new(:name, :as => :lastname)
46
+
47
+ matcher.matches?(index).should_not be_true
48
+ end
49
+
50
+ it "should not match a defined field without associated model" do
51
+ matcher = RspecThinkingSphinxMatchers::HaveField.new(:name, :from => :client)
52
+
53
+ matcher.matches?(index).should_not be_true
54
+ end
55
+
56
+ it "should not match a defined field without :sortable options" do
57
+ matcher = RspecThinkingSphinxMatchers::HaveField.new(:name, :sortable => true)
58
+
59
+ matcher.matches?(index).should_not be_true
60
+ end
61
+
62
+ it "should not match a defined field without :facet options" do
63
+ matcher = RspecThinkingSphinxMatchers::HaveField.new(:name, :facet => true)
64
+
65
+ matcher.matches?(index).should_not be_true
66
+ end
67
+
68
+ it "should not match a defined field without :sortable options" do
69
+ matcher = RspecThinkingSphinxMatchers::HaveField.new(:name, :sortable => true)
70
+
71
+ matcher.matches?(index).should_not be_true
72
+ end
73
+
74
+ it "should not match an undefined field" do
75
+ matcher = RspecThinkingSphinxMatchers::HaveField.new(:favorites)
76
+
77
+ matcher.matches?(index).should_not be_true
78
+ end
79
+ end
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+
3
+ describe RspecThinkingSphinxMatchers::DefineAnIndex do
4
+ let(:config) { ThinkingSphinx::Configuration.instance }
5
+
6
+ it_should_behave_like "a rspec matcher", RspecThinkingSphinxMatchers::DefineAnIndex.new
7
+
8
+ it "should match a defined index" do
9
+ index = config.indices_for_references(:user).first
10
+ matcher = RspecThinkingSphinxMatchers::DefineAnIndex.new
11
+
12
+ matcher.matches?(index).should be_true
13
+ end
14
+
15
+ it "should NOT match an undefined index" do
16
+ index = "non-existing-index"
17
+ matcher = RspecThinkingSphinxMatchers::DefineAnIndex.new
18
+
19
+ matcher.matches?(index).should_not be_true
20
+ end
21
+ end
22
+
@@ -0,0 +1,3 @@
1
+ describe RspecThinkingSphinxMatchers do
2
+ it { should be_const_defined(:VERSION) }
3
+ end
@@ -0,0 +1,18 @@
1
+ share_examples_for "a rspec matcher" do |matcher|
2
+ it "should have a matching method" do
3
+ matcher.should respond_to :matches?
4
+ end
5
+
6
+ it "should have a failure message" do
7
+ matcher.should respond_to :failure_message_for_should
8
+ end
9
+
10
+ it "should have a negative failure message" do
11
+ matcher.should respond_to :failure_message_for_should_not
12
+ end
13
+
14
+ it "should have a description" do
15
+ matcher.should respond_to :description
16
+ end
17
+ end
18
+
@@ -0,0 +1,14 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+
4
+ Bundler.require :default, :test
5
+
6
+ require 'combustion'
7
+ require 'thinking_sphinx'
8
+
9
+ Combustion.initialize! :active_record
10
+
11
+ require 'rspec'
12
+ require_relative 'shared_examples'
13
+ require_relative '../lib/rspec-thinking-sphinx-matchers'
14
+
metadata ADDED
@@ -0,0 +1,183 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rspec-thinking-sphinx-matchers
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.1
6
+ platform: ruby
7
+ authors:
8
+ - Govinda Fichtner
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-04-18 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ none: false
21
+ name: rake
22
+ type: :development
23
+ prerelease: false
24
+ requirement: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ! '>='
27
+ - !ruby/object:Gem::Version
28
+ version: '0'
29
+ none: false
30
+ - !ruby/object:Gem::Dependency
31
+ version_requirements: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ none: false
37
+ name: rspec
38
+ type: :development
39
+ prerelease: false
40
+ requirement: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ none: false
46
+ - !ruby/object:Gem::Dependency
47
+ version_requirements: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ~>
50
+ - !ruby/object:Gem::Version
51
+ version: 0.4.0
52
+ none: false
53
+ name: combustion
54
+ type: :development
55
+ prerelease: false
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ version: 0.4.0
61
+ none: false
62
+ - !ruby/object:Gem::Dependency
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ none: false
69
+ name: mysql2
70
+ type: :development
71
+ prerelease: false
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ none: false
78
+ - !ruby/object:Gem::Dependency
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ! '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ none: false
85
+ name: rspec
86
+ type: :runtime
87
+ prerelease: false
88
+ requirement: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ! '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ none: false
94
+ - !ruby/object:Gem::Dependency
95
+ version_requirements: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ~>
98
+ - !ruby/object:Gem::Version
99
+ version: '3.0'
100
+ none: false
101
+ name: thinking-sphinx
102
+ type: :runtime
103
+ prerelease: false
104
+ requirement: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ~>
107
+ - !ruby/object:Gem::Version
108
+ version: '3.0'
109
+ none: false
110
+ description: Rspec matchers for thinking sphinx index definition
111
+ email:
112
+ - govinda@beagile.de
113
+ executables: []
114
+ extensions: []
115
+ extra_rdoc_files: []
116
+ files:
117
+ - .gitignore
118
+ - .travis.yml
119
+ - Gemfile
120
+ - LICENSE.txt
121
+ - README.md
122
+ - Rakefile
123
+ - lib/rspec-thinking-sphinx-matchers.rb
124
+ - lib/rspec-thinking-sphinx-matchers/attribute_matcher.rb
125
+ - lib/rspec-thinking-sphinx-matchers/field_matcher.rb
126
+ - lib/rspec-thinking-sphinx-matchers/index_matcher.rb
127
+ - lib/rspec-thinking-sphinx-matchers/thinking_sphinx_example_group.rb
128
+ - lib/rspec-thinking-sphinx-matchers/version.rb
129
+ - rspec-thinking-sphinx-matchers.gemspec
130
+ - spec/internal/app/indices/user_index.rb
131
+ - spec/internal/app/models/user.rb
132
+ - spec/internal/config/database.yml
133
+ - spec/internal/config/routes.rb
134
+ - spec/internal/db/combustion_test.sqlite
135
+ - spec/internal/db/schema.rb
136
+ - spec/internal/log/.gitignore
137
+ - spec/internal/public/favicon.ico
138
+ - spec/matchers/attribute_matcher_spec.rb
139
+ - spec/matchers/field_matcher_spec.rb
140
+ - spec/matchers/index_matcher_spec.rb
141
+ - spec/rspec_thinking_sphinx_spec.rb
142
+ - spec/shared_examples.rb
143
+ - spec/spec_helper.rb
144
+ homepage: ''
145
+ licenses: []
146
+ post_install_message:
147
+ rdoc_options: []
148
+ require_paths:
149
+ - lib
150
+ required_ruby_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ! '>='
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ none: false
156
+ required_rubygems_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ! '>='
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ none: false
162
+ requirements: []
163
+ rubyforge_project:
164
+ rubygems_version: 1.8.23
165
+ signing_key:
166
+ specification_version: 3
167
+ summary: Rspec matchers for thinking sphinx index definition
168
+ test_files:
169
+ - spec/internal/app/indices/user_index.rb
170
+ - spec/internal/app/models/user.rb
171
+ - spec/internal/config/database.yml
172
+ - spec/internal/config/routes.rb
173
+ - spec/internal/db/combustion_test.sqlite
174
+ - spec/internal/db/schema.rb
175
+ - spec/internal/log/.gitignore
176
+ - spec/internal/public/favicon.ico
177
+ - spec/matchers/attribute_matcher_spec.rb
178
+ - spec/matchers/field_matcher_spec.rb
179
+ - spec/matchers/index_matcher_spec.rb
180
+ - spec/rspec_thinking_sphinx_spec.rb
181
+ - spec/shared_examples.rb
182
+ - spec/spec_helper.rb
183
+ has_rdoc: