oss_active_record 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5dbe9175f3b70fbc88ae6aa3d225ca41802b6bc
4
- data.tar.gz: 828944ea1be1e1bd68e60ddf1f3b3bf08ba04b44
3
+ metadata.gz: 2d640d5adbf8e67536f32d571c4584d3e662aa6f
4
+ data.tar.gz: 2ebaa6cad70a8a9b341391c6ee1cc2bd7ab32f0f
5
5
  SHA512:
6
- metadata.gz: 42b8fc46c1f6b9bf60204cca11719c0e051aad888c8cfb9f8c39516913bd44500b215e07dc741ef6956a8fc109116e32720ae91262015b83010c8d8c59c52dad
7
- data.tar.gz: 516320529b5e0acf718605f5f2f8ef927a26f7a22b51678dd72951ff16fbd94073a49efb06cb71ec6160a6e8b8f352cce54efacbc5747f6fc99daefbe2275012
6
+ metadata.gz: e3a2b635543f3cd08a179d839c6b0c59f6963a79d2a020fc6f0d6ae5efd20d56cfe20c23ab5732760292d50022620e5ab74f83de668a6f4eb5b586ab37247846
7
+ data.tar.gz: c77799caf0a24f7ab14a543eb71dc0d0a9477c6d67f9212d573ae668f31d9b54d03aef01bc3beaa29a5c65abb0eede8ba343906fca8872b843a92782ba744f05
@@ -1,81 +1,97 @@
1
+ require 'thread'
2
+
1
3
  module OssActiveRecord
2
4
  module Searchable
3
5
  extend ActiveSupport::Concern
6
+
7
+ included do
8
+ extend ClassMethods
9
+ include InstanceMethods
10
+ end
11
+
4
12
  module ClassMethods
5
- @@field_types= [:integer, :text, :string, :time, :suggestion] #supported field types
6
- @@index_instances = {}
13
+ @@oss_field_types = [:integer, :text, :string, :time, :suggestion] # supported field types
14
+ @@oss_mutex = Mutex.new
7
15
 
8
16
  def searchable(options = {}, &block)
9
17
  yield
10
18
  unless options[:auto_index] == false
11
- after_save :index
19
+ after_commit :index
12
20
  end
13
21
  end
14
22
 
15
23
  def index_instance
16
- idx_inst = @@index_instances[self.name.downcase]
17
- if idx_inst.nil?
18
- idx_inst = IndexInstance.new(self.name.downcase)
19
- @@index_instances[self.name.downcase] = idx_inst
24
+ @@oss_mutex.synchronize do
25
+ @index_instance ||= IndexInstance.new(self.name.downcase)
20
26
  end
21
- idx_inst
22
27
  end
23
28
 
24
29
  def reindex!
25
30
  index_instance.oss_index.delete!
26
31
  index_instance.create_schema!
27
- self.all.find_in_batches do |group|
28
- group.each { |doc| doc.index(index_instance) }
29
- end
32
+ self.all.find_in_batches { |group| group.each(&:index) }
30
33
  end
31
34
 
32
35
  def method_missing(method, *args, &block)
33
- return index_instance.add_field(args[0], method, block) if @@field_types.include? method
36
+ return index_instance.add_field(args[0], method, block) if @@oss_field_types.include? method
34
37
  super
35
38
  end
36
39
 
37
- def search(*args, &block)
38
- searchRequest = SearchRequest.new(index_instance)
39
- searchRequest.returns index_instance.fields.map {|f|"#{f[:name]}|#{f[:type]}"}
40
- find_results(searchRequest.execute(&block), index_instance.field_id)
40
+ def oss_search(*args, &block)
41
+ options = args.extract_options!
42
+ search_request = SearchRequest.new(index_instance)
43
+ search_request.returns index_instance.fields.map { |f| "#{f[:name]}|#{f[:type]}" }
44
+ find_results(search_request.execute(&block), index_instance.field_id, options)
41
45
  end
46
+ alias_method :search, :oss_search
42
47
 
43
- def find_results(search_result, field_id)
48
+ def find_results(search_result, field_id, options)
44
49
  id_field_name = "#{field_id[:name]}|#{field_id[:type]}"
45
- results = []
46
- search_result['documents'].each do |document|
47
- document['fields'].each do |field|
48
- id = field['values'].map {|f|f.to_i}.uniq if field['fieldName'] == id_field_name
49
- results<<find(id)[0] unless id.nil?
50
- end
50
+
51
+ ids = search_result['documents'].map do |document|
52
+ field = document['fields'].find { |f| f['fieldName'] == id_field_name }
53
+ field['values'].compact.first
54
+ end.compact
55
+
56
+ query = if options[:include]
57
+ unscoped.includes(options[:include])
58
+ else
59
+ unscoped
60
+ end
61
+ records = query.find(ids)
62
+
63
+ ids.map do |id|
64
+ records.find { |record| record.id == id.to_i }
51
65
  end
52
- return results
53
66
  end
54
67
  end
55
68
 
56
- def index(index_instance)
57
- doc = self.to_indexable(index_instance.fields)
69
+ def index
58
70
  oss_doc = Oss::Document.new
59
- doc.each do |name,value|
60
- oss_doc.fields << Oss::Field.new(name, value)
61
- end
62
- index_instance.index(oss_doc)
71
+ oss_doc.fields = to_indexable.map { |name, value| Oss::Field.new(name, value) }
72
+ self.class.index_instance.index(oss_doc)
63
73
  end
64
74
 
65
- def to_indexable(fields)
66
- doc={}
67
- fields.each do |field|
68
- if field[:block].nil?
69
- val = self.send(field[:name].to_sym)
70
- else
71
- val = field[:block].call
72
- end
73
- doc["#{field[:name]}|#{field[:type]}"]=val
75
+ def to_indexable
76
+ self.class.index_instance.fields.reduce({}) do |doc, field|
77
+ val = if field[:block].nil?
78
+ send(field[:name].to_sym)
79
+ else
80
+ instance_eval(&field[:block])
81
+ end
82
+ doc["#{field[:name]}|#{field[:type]}"] = val
83
+ doc
74
84
  end
75
- doc
76
85
  end
86
+ end
77
87
 
88
+ #TODO Working on deletion
89
+ module InstanceMethods
90
+ def delete!
91
+ self.class.index_instance
92
+ end
93
+ alias :delete :delete!
78
94
  end
79
95
  end
80
96
 
81
- ActiveRecord::Base.send :include, OssActiveRecord::Searchable
97
+ ActiveRecord::Base.send :include, OssActiveRecord::Searchable
@@ -1,3 +1,3 @@
1
1
  module OssActiveRecord
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -27,13 +27,13 @@ class Folder
27
27
  end
28
28
 
29
29
  class Document < ActiveRecord::Base
30
-
31
30
  belongs_to :current_revision
32
- def self.folder
31
+
32
+ def folder
33
33
  Folder.new
34
34
  end
35
35
 
36
- def self.current_revision
36
+ def current_revision
37
37
  CurrentRevision.new
38
38
  end
39
39
 
@@ -53,5 +53,4 @@ class Document < ActiveRecord::Base
53
53
  string :file_content_type do current_revision.file_content_type end
54
54
  string :state do current_revision.state end
55
55
  end
56
-
57
- end
56
+ end
@@ -1,3 +1,3 @@
1
1
  Rails.configuration.open_search_server_url = "http://localhost:8080"
2
- Rails.configuration.open_search_server_login = nil
3
- Rails.configuration.open_search_server_apikey = nil
2
+ Rails.configuration.open_search_server_login = "admin"
3
+ Rails.configuration.open_search_server_apikey = "54a51ee4f27cbbcb7a771352b980567f"
Binary file
@@ -16918,5 +16918,1462 @@ DocumentTest: test_the_truth
16918
16918
   (0.1ms) begin transaction
16919
16919
  -----------------------------------------------------
16920
16920
  OssActiveRecordTest: test_OssActiveRecord_is_a_module
16921
+ -----------------------------------------------------
16922
+  (0.1ms) rollback transaction
16923
+  (6.3ms) begin transaction
16924
+ Fixture Delete (0.3ms) DELETE FROM "articles"
16925
+ Fixture Insert (0.2ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-07 22:04:45')
16926
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-07 22:04:45')
16927
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-07 22:04:45')
16928
+  (1.3ms) commit transaction
16929
+  (0.1ms) begin transaction
16930
+ ---------------------------------
16931
+ ArticleTest: test_Ascending_order
16932
+ ---------------------------------
16933
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
16934
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
16935
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
16936
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
16937
+  (0.2ms) rollback transaction
16938
+  (0.1ms) begin transaction
16939
+ ----------------------------------
16940
+ ArticleTest: test_Descending_order
16941
+ ----------------------------------
16942
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
16943
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
16944
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
16945
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
16946
+  (0.1ms) rollback transaction
16947
+  (0.1ms) begin transaction
16948
+ ----------------------------------
16949
+ ArticleTest: test_Full_text_search
16950
+ ----------------------------------
16951
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
16952
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
16953
+  (0.1ms) rollback transaction
16954
+  (0.1ms) begin transaction
16955
+ Fixture Delete (0.3ms) DELETE FROM "documents"
16956
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-07 22:04:48')
16957
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-07 22:04:48')
16958
+  (0.7ms) commit transaction
16959
+  (0.1ms) begin transaction
16960
+ ----------------------------------
16961
+ DocumentTest: test_Search_document
16962
+ ----------------------------------
16963
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
16964
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
16965
+ Document Load (0.0ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
16966
+  (0.1ms) rollback transaction
16967
+  (0.1ms) begin transaction
16968
+ -----------------------------
16969
+ DocumentTest: test_Suggestion
16970
+ -----------------------------
16971
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
16972
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
16973
+  (0.1ms) rollback transaction
16974
+  (0.1ms) begin transaction
16975
+ ----------------------------
16976
+ DocumentTest: test_the_truth
16977
+ ----------------------------
16978
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
16979
+  (0.2ms) rollback transaction
16980
+  (0.1ms) begin transaction
16981
+ -----------------------------------------------------
16982
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
16983
+ -----------------------------------------------------
16984
+  (0.1ms) rollback transaction
16985
+  (4.7ms) begin transaction
16986
+ Fixture Delete (0.4ms) DELETE FROM "articles"
16987
+ Fixture Insert (0.2ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 06:27:12')
16988
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 06:27:12')
16989
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 06:27:12')
16990
+  (0.9ms) commit transaction
16991
+  (0.1ms) begin transaction
16992
+ ---------------------------------
16993
+ ArticleTest: test_Ascending_order
16994
+ ---------------------------------
16995
+  (0.2ms) rollback transaction
16996
+  (0.1ms) begin transaction
16997
+ ----------------------------------
16998
+ ArticleTest: test_Descending_order
16999
+ ----------------------------------
17000
+  (0.2ms) rollback transaction
17001
+  (0.1ms) begin transaction
17002
+ ----------------------------------
17003
+ ArticleTest: test_Full_text_search
17004
+ ----------------------------------
17005
+  (0.1ms) rollback transaction
17006
+  (0.1ms) begin transaction
17007
+ Fixture Delete (0.5ms) DELETE FROM "documents"
17008
+ Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 06:27:12')
17009
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 06:27:12')
17010
+  (0.8ms) commit transaction
17011
+  (0.1ms) begin transaction
17012
+ ----------------------------------
17013
+ DocumentTest: test_Search_document
17014
+ ----------------------------------
17015
+  (0.2ms) rollback transaction
17016
+  (0.1ms) begin transaction
17017
+ -----------------------------
17018
+ DocumentTest: test_Suggestion
17019
+ -----------------------------
17020
+  (0.1ms) rollback transaction
17021
+  (0.1ms) begin transaction
17022
+ ----------------------------
17023
+ DocumentTest: test_the_truth
17024
+ ----------------------------
17025
+  (0.1ms) rollback transaction
17026
+  (0.1ms) begin transaction
17027
+ -----------------------------------------------------
17028
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17029
+ -----------------------------------------------------
17030
+  (0.1ms) rollback transaction
17031
+  (0.5ms) begin transaction
17032
+ Fixture Delete (0.5ms) DELETE FROM "articles"
17033
+ Fixture Insert (0.2ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 06:30:04')
17034
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 06:30:04')
17035
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 06:30:04')
17036
+  (0.7ms) commit transaction
17037
+  (0.1ms) begin transaction
17038
+ ---------------------------------
17039
+ ArticleTest: test_Ascending_order
17040
+ ---------------------------------
17041
+  (0.1ms) rollback transaction
17042
+  (0.2ms) begin transaction
17043
+ ----------------------------------
17044
+ ArticleTest: test_Descending_order
17045
+ ----------------------------------
17046
+  (0.2ms) rollback transaction
17047
+  (0.1ms) begin transaction
17048
+ ----------------------------------
17049
+ ArticleTest: test_Full_text_search
17050
+ ----------------------------------
17051
+  (0.2ms) rollback transaction
17052
+  (0.1ms) begin transaction
17053
+ Fixture Delete (0.4ms) DELETE FROM "documents"
17054
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 06:30:04')
17055
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 06:30:04')
17056
+  (0.6ms) commit transaction
17057
+  (0.1ms) begin transaction
17058
+ ----------------------------------
17059
+ DocumentTest: test_Search_document
17060
+ ----------------------------------
17061
+  (0.1ms) rollback transaction
17062
+  (0.1ms) begin transaction
17063
+ -----------------------------
17064
+ DocumentTest: test_Suggestion
17065
+ -----------------------------
17066
+  (0.1ms) rollback transaction
17067
+  (0.1ms) begin transaction
17068
+ ----------------------------
17069
+ DocumentTest: test_the_truth
17070
+ ----------------------------
17071
+  (0.2ms) rollback transaction
17072
+  (0.1ms) begin transaction
17073
+ -----------------------------------------------------
17074
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17075
+ -----------------------------------------------------
17076
+  (0.1ms) rollback transaction
17077
+  (0.8ms) begin transaction
17078
+ Fixture Delete (0.5ms) DELETE FROM "articles"
17079
+ Fixture Insert (0.3ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 06:31:48')
17080
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 06:31:48')
17081
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 06:31:48')
17082
+  (0.9ms) commit transaction
17083
+  (0.1ms) begin transaction
17084
+ ---------------------------------
17085
+ ArticleTest: test_Ascending_order
17086
+ ---------------------------------
17087
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17088
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17089
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17090
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17091
+  (0.1ms) rollback transaction
17092
+  (0.1ms) begin transaction
17093
+ ----------------------------------
17094
+ ArticleTest: test_Descending_order
17095
+ ----------------------------------
17096
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17097
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17098
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17099
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17100
+  (0.1ms) rollback transaction
17101
+  (0.1ms) begin transaction
17102
+ ----------------------------------
17103
+ ArticleTest: test_Full_text_search
17104
+ ----------------------------------
17105
+ Article Load (0.5ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17106
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17107
+  (0.1ms) rollback transaction
17108
+  (0.1ms) begin transaction
17109
+ Fixture Delete (0.2ms) DELETE FROM "documents"
17110
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 06:31:50')
17111
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 06:31:50')
17112
+  (0.8ms) commit transaction
17113
+  (0.1ms) begin transaction
17114
+ ----------------------------------
17115
+ DocumentTest: test_Search_document
17116
+ ----------------------------------
17117
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17118
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
17119
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17120
+  (0.1ms) rollback transaction
17121
+  (0.1ms) begin transaction
17122
+ -----------------------------
17123
+ DocumentTest: test_Suggestion
17124
+ -----------------------------
17125
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17126
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17127
+  (0.1ms) rollback transaction
17128
+  (0.1ms) begin transaction
17129
+ ----------------------------
17130
+ DocumentTest: test_the_truth
17131
+ ----------------------------
17132
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17133
+  (0.2ms) rollback transaction
17134
+  (0.1ms) begin transaction
17135
+ -----------------------------------------------------
17136
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17137
+ -----------------------------------------------------
17138
+  (0.1ms) rollback transaction
17139
+  (0.6ms) begin transaction
17140
+ Fixture Delete (0.5ms) DELETE FROM "articles"
17141
+ Fixture Insert (0.3ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 06:34:58')
17142
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 06:34:58')
17143
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 06:34:58')
17144
+  (1.2ms) commit transaction
17145
+  (0.1ms) begin transaction
17146
+ ---------------------------------
17147
+ ArticleTest: test_Ascending_order
17148
+ ---------------------------------
17149
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17150
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17151
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17152
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17153
+  (0.1ms) rollback transaction
17154
+  (0.1ms) begin transaction
17155
+ --------------------------
17156
+ ArticleTest: test_Deletion
17157
+ --------------------------
17158
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17159
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17160
+ SQL (0.5ms) DELETE FROM "articles" WHERE "articles"."id" = 1
17161
+  (0.4ms) rollback transaction
17162
+  (0.1ms) begin transaction
17163
+ ----------------------------------
17164
+ ArticleTest: test_Descending_order
17165
+ ----------------------------------
17166
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17167
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17168
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17169
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17170
+  (0.1ms) rollback transaction
17171
+  (0.1ms) begin transaction
17172
+ ----------------------------------
17173
+ ArticleTest: test_Full_text_search
17174
+ ----------------------------------
17175
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17176
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17177
+  (0.1ms) rollback transaction
17178
+  (0.1ms) begin transaction
17179
+ Fixture Delete (0.3ms) DELETE FROM "documents"
17180
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 06:34:59')
17181
+ Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 06:34:59')
17182
+  (1.0ms) commit transaction
17183
+  (0.1ms) begin transaction
17184
+ ----------------------------------
17185
+ DocumentTest: test_Search_document
17186
+ ----------------------------------
17187
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17188
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
17189
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17190
+  (0.2ms) rollback transaction
17191
+  (0.1ms) begin transaction
17192
+ -----------------------------
17193
+ DocumentTest: test_Suggestion
17194
+ -----------------------------
17195
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17196
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17197
+  (0.1ms) rollback transaction
17198
+  (0.1ms) begin transaction
17199
+ ----------------------------
17200
+ DocumentTest: test_the_truth
17201
+ ----------------------------
17202
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17203
+  (0.2ms) rollback transaction
17204
+  (0.1ms) begin transaction
17205
+ -----------------------------------------------------
17206
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17207
+ -----------------------------------------------------
17208
+  (0.1ms) rollback transaction
17209
+  (0.6ms) begin transaction
17210
+ Fixture Delete (0.4ms) DELETE FROM "articles"
17211
+ Fixture Insert (0.3ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 06:35:07')
17212
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 06:35:07')
17213
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 06:35:07')
17214
+  (0.7ms) commit transaction
17215
+  (0.1ms) begin transaction
17216
+ ---------------------------------
17217
+ ArticleTest: test_Ascending_order
17218
+ ---------------------------------
17219
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17220
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17221
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17222
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17223
+  (0.1ms) rollback transaction
17224
+  (0.1ms) begin transaction
17225
+ --------------------------
17226
+ ArticleTest: test_Deletion
17227
+ --------------------------
17228
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17229
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17230
+ SQL (0.4ms) DELETE FROM "articles" WHERE "articles"."id" = 1
17231
+  (0.4ms) rollback transaction
17232
+  (0.1ms) begin transaction
17233
+ ----------------------------------
17234
+ ArticleTest: test_Descending_order
17235
+ ----------------------------------
17236
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17237
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17238
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17239
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17240
+  (0.1ms) rollback transaction
17241
+  (0.1ms) begin transaction
17242
+ ----------------------------------
17243
+ ArticleTest: test_Full_text_search
17244
+ ----------------------------------
17245
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17246
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17247
+  (0.1ms) rollback transaction
17248
+  (0.1ms) begin transaction
17249
+ Fixture Delete (0.4ms) DELETE FROM "documents"
17250
+ Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 06:35:08')
17251
+ Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 06:35:08')
17252
+  (0.8ms) commit transaction
17253
+  (0.1ms) begin transaction
17254
+ ----------------------------------
17255
+ DocumentTest: test_Search_document
17256
+ ----------------------------------
17257
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17258
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
17259
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17260
+  (0.1ms) rollback transaction
17261
+  (0.1ms) begin transaction
17262
+ -----------------------------
17263
+ DocumentTest: test_Suggestion
17264
+ -----------------------------
17265
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17266
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17267
+  (0.1ms) rollback transaction
17268
+  (0.1ms) begin transaction
17269
+ ----------------------------
17270
+ DocumentTest: test_the_truth
17271
+ ----------------------------
17272
+ Document Load (0.6ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17273
+  (0.2ms) rollback transaction
17274
+  (0.1ms) begin transaction
17275
+ -----------------------------------------------------
17276
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17277
+ -----------------------------------------------------
17278
+  (0.1ms) rollback transaction
17279
+  (0.7ms) begin transaction
17280
+ Fixture Delete (0.4ms) DELETE FROM "articles"
17281
+ Fixture Insert (0.2ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 07:08:56')
17282
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 07:08:56')
17283
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 07:08:56')
17284
+  (0.7ms) commit transaction
17285
+  (0.1ms) begin transaction
17286
+ ---------------------------------
17287
+ ArticleTest: test_Ascending_order
17288
+ ---------------------------------
17289
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17290
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17291
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17292
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17293
+  (0.1ms) rollback transaction
17294
+  (0.1ms) begin transaction
17295
+ --------------------------
17296
+ ArticleTest: test_Deletion
17297
+ --------------------------
17298
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17299
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17300
+ SQL (0.3ms) DELETE FROM "articles" WHERE "articles"."id" = 1
17301
+  (0.5ms) rollback transaction
17302
+  (0.1ms) begin transaction
17303
+ ----------------------------------
17304
+ ArticleTest: test_Descending_order
17305
+ ----------------------------------
17306
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17307
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17308
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17309
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17310
+  (0.1ms) rollback transaction
17311
+  (0.1ms) begin transaction
17312
+ ----------------------------------
17313
+ ArticleTest: test_Full_text_search
17314
+ ----------------------------------
17315
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17316
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17317
+  (0.1ms) rollback transaction
17318
+  (0.1ms) begin transaction
17319
+ Fixture Delete (0.3ms) DELETE FROM "documents"
17320
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 07:08:58')
17321
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 07:08:58')
17322
+  (0.9ms) commit transaction
17323
+  (0.1ms) begin transaction
17324
+ ----------------------------------
17325
+ DocumentTest: test_Search_document
17326
+ ----------------------------------
17327
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17328
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
17329
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17330
+  (0.1ms) rollback transaction
17331
+  (0.1ms) begin transaction
17332
+ -----------------------------
17333
+ DocumentTest: test_Suggestion
17334
+ -----------------------------
17335
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17336
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17337
+  (0.1ms) rollback transaction
17338
+  (0.1ms) begin transaction
17339
+ ----------------------------
17340
+ DocumentTest: test_the_truth
17341
+ ----------------------------
17342
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17343
+  (0.2ms) rollback transaction
17344
+  (0.1ms) begin transaction
17345
+ -----------------------------------------------------
17346
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17347
+ -----------------------------------------------------
17348
+  (0.1ms) rollback transaction
17349
+  (1.1ms) begin transaction
17350
+ Fixture Delete (0.4ms) DELETE FROM "articles"
17351
+ Fixture Insert (0.2ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 07:10:18')
17352
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 07:10:18')
17353
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 07:10:18')
17354
+  (0.7ms) commit transaction
17355
+  (0.1ms) begin transaction
17356
+ ---------------------------------
17357
+ ArticleTest: test_Ascending_order
17358
+ ---------------------------------
17359
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17360
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17361
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17362
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17363
+  (0.1ms) rollback transaction
17364
+  (0.1ms) begin transaction
17365
+ --------------------------
17366
+ ArticleTest: test_Deletion
17367
+ --------------------------
17368
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17369
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17370
+  (0.1ms) SAVEPOINT active_record_1
17371
+ SQL (0.4ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 1]]
17372
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17373
+  (0.3ms) rollback transaction
17374
+  (0.1ms) begin transaction
17375
+ ----------------------------------
17376
+ ArticleTest: test_Descending_order
17377
+ ----------------------------------
17378
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17379
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17380
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17381
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17382
+  (0.1ms) rollback transaction
17383
+  (0.1ms) begin transaction
17384
+ ----------------------------------
17385
+ ArticleTest: test_Full_text_search
17386
+ ----------------------------------
17387
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17388
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17389
+  (0.1ms) rollback transaction
17390
+  (0.2ms) begin transaction
17391
+ Fixture Delete (0.3ms) DELETE FROM "documents"
17392
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 07:10:20')
17393
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 07:10:20')
17394
+  (0.7ms) commit transaction
17395
+  (0.1ms) begin transaction
17396
+ ----------------------------------
17397
+ DocumentTest: test_Search_document
17398
+ ----------------------------------
17399
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17400
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
17401
+ Document Load (0.0ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17402
+  (0.1ms) rollback transaction
17403
+  (0.1ms) begin transaction
17404
+ -----------------------------
17405
+ DocumentTest: test_Suggestion
17406
+ -----------------------------
17407
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17408
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17409
+  (0.1ms) rollback transaction
17410
+  (0.1ms) begin transaction
17411
+ ----------------------------
17412
+ DocumentTest: test_the_truth
17413
+ ----------------------------
17414
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17415
+  (0.2ms) rollback transaction
17416
+  (0.1ms) begin transaction
17417
+ -----------------------------------------------------
17418
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17419
+ -----------------------------------------------------
17420
+  (0.1ms) rollback transaction
17421
+  (0.6ms) begin transaction
17422
+ Fixture Delete (0.4ms) DELETE FROM "articles"
17423
+ Fixture Insert (0.3ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 07:10:51')
17424
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 07:10:51')
17425
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 07:10:51')
17426
+  (0.7ms) commit transaction
17427
+  (0.1ms) begin transaction
17428
+ ---------------------------------
17429
+ ArticleTest: test_Ascending_order
17430
+ ---------------------------------
17431
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17432
+ Article Load (0.5ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17433
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17434
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17435
+  (0.2ms) rollback transaction
17436
+  (0.1ms) begin transaction
17437
+ --------------------------
17438
+ ArticleTest: test_Deletion
17439
+ --------------------------
17440
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17441
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17442
+  (0.2ms) rollback transaction
17443
+  (0.1ms) begin transaction
17444
+ ----------------------------------
17445
+ ArticleTest: test_Descending_order
17446
+ ----------------------------------
17447
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17448
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17449
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17450
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17451
+  (0.1ms) rollback transaction
17452
+  (0.1ms) begin transaction
17453
+ ----------------------------------
17454
+ ArticleTest: test_Full_text_search
17455
+ ----------------------------------
17456
+ Article Load (0.8ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17457
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17458
+  (0.1ms) rollback transaction
17459
+  (0.1ms) begin transaction
17460
+ Fixture Delete (0.3ms) DELETE FROM "documents"
17461
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 07:10:52')
17462
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 07:10:52')
17463
+  (0.6ms) commit transaction
17464
+  (0.1ms) begin transaction
17465
+ ----------------------------------
17466
+ DocumentTest: test_Search_document
17467
+ ----------------------------------
17468
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17469
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
17470
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17471
+  (0.1ms) rollback transaction
17472
+  (0.1ms) begin transaction
17473
+ -----------------------------
17474
+ DocumentTest: test_Suggestion
17475
+ -----------------------------
17476
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17477
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17478
+  (0.1ms) rollback transaction
17479
+  (0.1ms) begin transaction
17480
+ ----------------------------
17481
+ DocumentTest: test_the_truth
17482
+ ----------------------------
17483
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17484
+  (0.2ms) rollback transaction
17485
+  (0.1ms) begin transaction
17486
+ -----------------------------------------------------
17487
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17488
+ -----------------------------------------------------
17489
+  (0.1ms) rollback transaction
17490
+  (0.7ms) begin transaction
17491
+ Fixture Delete (0.5ms) DELETE FROM "articles"
17492
+ Fixture Insert (0.4ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 07:11:44')
17493
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 07:11:44')
17494
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 07:11:44')
17495
+  (0.6ms) commit transaction
17496
+  (0.1ms) begin transaction
17497
+ ---------------------------------
17498
+ ArticleTest: test_Ascending_order
17499
+ ---------------------------------
17500
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17501
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17502
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17503
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17504
+  (0.1ms) rollback transaction
17505
+  (0.1ms) begin transaction
17506
+ --------------------------
17507
+ ArticleTest: test_Deletion
17508
+ --------------------------
17509
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17510
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17511
+  (0.1ms) rollback transaction
17512
+  (0.1ms) begin transaction
17513
+ ----------------------------------
17514
+ ArticleTest: test_Descending_order
17515
+ ----------------------------------
17516
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17517
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17518
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17519
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17520
+  (0.1ms) rollback transaction
17521
+  (0.1ms) begin transaction
17522
+ ----------------------------------
17523
+ ArticleTest: test_Full_text_search
17524
+ ----------------------------------
17525
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17526
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17527
+  (0.1ms) rollback transaction
17528
+  (0.1ms) begin transaction
17529
+ Fixture Delete (0.3ms) DELETE FROM "documents"
17530
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 07:11:46')
17531
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 07:11:46')
17532
+  (0.6ms) commit transaction
17533
+  (0.1ms) begin transaction
17534
+ ----------------------------------
17535
+ DocumentTest: test_Search_document
17536
+ ----------------------------------
17537
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17538
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
17539
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17540
+  (0.2ms) rollback transaction
17541
+  (0.1ms) begin transaction
17542
+ -----------------------------
17543
+ DocumentTest: test_Suggestion
17544
+ -----------------------------
17545
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17546
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17547
+  (0.1ms) rollback transaction
17548
+  (0.1ms) begin transaction
17549
+ ----------------------------
17550
+ DocumentTest: test_the_truth
17551
+ ----------------------------
17552
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17553
+  (0.2ms) rollback transaction
17554
+  (0.1ms) begin transaction
17555
+ -----------------------------------------------------
17556
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17557
+ -----------------------------------------------------
17558
+  (0.1ms) rollback transaction
17559
+  (0.5ms) begin transaction
17560
+ Fixture Delete (0.5ms) DELETE FROM "articles"
17561
+ Fixture Insert (0.4ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 07:12:05')
17562
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 07:12:05')
17563
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 07:12:05')
17564
+  (0.7ms) commit transaction
17565
+  (0.1ms) begin transaction
17566
+ ---------------------------------
17567
+ ArticleTest: test_Ascending_order
17568
+ ---------------------------------
17569
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17570
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17571
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17572
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17573
+  (0.2ms) rollback transaction
17574
+  (0.2ms) begin transaction
17575
+ --------------------------
17576
+ ArticleTest: test_Deletion
17577
+ --------------------------
17578
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17579
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17580
+  (0.1ms) rollback transaction
17581
+  (0.1ms) begin transaction
17582
+ ----------------------------------
17583
+ ArticleTest: test_Descending_order
17584
+ ----------------------------------
17585
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17586
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17587
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17588
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17589
+  (0.1ms) rollback transaction
17590
+  (0.1ms) begin transaction
17591
+ ----------------------------------
17592
+ ArticleTest: test_Full_text_search
17593
+ ----------------------------------
17594
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17595
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17596
+  (0.1ms) rollback transaction
17597
+  (0.1ms) begin transaction
17598
+ Fixture Delete (0.3ms) DELETE FROM "documents"
17599
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 07:12:06')
17600
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 07:12:06')
17601
+  (1.0ms) commit transaction
17602
+  (0.1ms) begin transaction
17603
+ ----------------------------------
17604
+ DocumentTest: test_Search_document
17605
+ ----------------------------------
17606
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17607
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
17608
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17609
+  (0.2ms) rollback transaction
17610
+  (0.1ms) begin transaction
17611
+ -----------------------------
17612
+ DocumentTest: test_Suggestion
17613
+ -----------------------------
17614
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17615
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17616
+  (0.1ms) rollback transaction
17617
+  (0.1ms) begin transaction
17618
+ ----------------------------
17619
+ DocumentTest: test_the_truth
17620
+ ----------------------------
17621
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17622
+  (0.2ms) rollback transaction
17623
+  (0.1ms) begin transaction
17624
+ -----------------------------------------------------
17625
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17626
+ -----------------------------------------------------
17627
+  (0.1ms) rollback transaction
17628
+  (0.6ms) begin transaction
17629
+ Fixture Delete (0.4ms) DELETE FROM "articles"
17630
+ Fixture Insert (0.2ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 07:12:19')
17631
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 07:12:19')
17632
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 07:12:19')
17633
+  (0.7ms) commit transaction
17634
+  (0.1ms) begin transaction
17635
+ ---------------------------------
17636
+ ArticleTest: test_Ascending_order
17637
+ ---------------------------------
17638
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17639
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17640
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17641
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17642
+  (0.2ms) rollback transaction
17643
+  (0.2ms) begin transaction
17644
+ --------------------------
17645
+ ArticleTest: test_Deletion
17646
+ --------------------------
17647
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17648
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17649
+  (0.2ms) rollback transaction
17650
+  (0.1ms) begin transaction
17651
+ ----------------------------------
17652
+ ArticleTest: test_Descending_order
17653
+ ----------------------------------
17654
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17655
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17656
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17657
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17658
+  (0.2ms) rollback transaction
17659
+  (0.2ms) begin transaction
17660
+ ----------------------------------
17661
+ ArticleTest: test_Full_text_search
17662
+ ----------------------------------
17663
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17664
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17665
+  (0.2ms) rollback transaction
17666
+  (0.2ms) begin transaction
17667
+ Fixture Delete (0.4ms) DELETE FROM "documents"
17668
+ Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 07:12:20')
17669
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 07:12:20')
17670
+  (0.9ms) commit transaction
17671
+  (0.1ms) begin transaction
17672
+ ----------------------------------
17673
+ DocumentTest: test_Search_document
17674
+ ----------------------------------
17675
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17676
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
17677
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17678
+  (0.2ms) rollback transaction
17679
+  (0.1ms) begin transaction
17680
+ -----------------------------
17681
+ DocumentTest: test_Suggestion
17682
+ -----------------------------
17683
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17684
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17685
+  (0.1ms) rollback transaction
17686
+  (0.1ms) begin transaction
17687
+ ----------------------------
17688
+ DocumentTest: test_the_truth
17689
+ ----------------------------
17690
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17691
+  (0.2ms) rollback transaction
17692
+  (0.2ms) begin transaction
17693
+ -----------------------------------------------------
17694
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17695
+ -----------------------------------------------------
17696
+  (0.2ms) rollback transaction
17697
+  (0.6ms) begin transaction
17698
+ Fixture Delete (0.5ms) DELETE FROM "articles"
17699
+ Fixture Insert (0.3ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 07:12:42')
17700
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 07:12:42')
17701
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 07:12:42')
17702
+  (0.7ms) commit transaction
17703
+  (0.1ms) begin transaction
17704
+ ---------------------------------
17705
+ ArticleTest: test_Ascending_order
17706
+ ---------------------------------
17707
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17708
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17709
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17710
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17711
+  (0.2ms) rollback transaction
17712
+  (0.2ms) begin transaction
17713
+ --------------------------
17714
+ ArticleTest: test_Deletion
17715
+ --------------------------
17716
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17717
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17718
+  (0.1ms) rollback transaction
17719
+  (0.1ms) begin transaction
17720
+ ----------------------------------
17721
+ ArticleTest: test_Descending_order
17722
+ ----------------------------------
17723
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17724
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17725
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17726
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17727
+  (0.1ms) rollback transaction
17728
+  (0.1ms) begin transaction
17729
+ ----------------------------------
17730
+ ArticleTest: test_Full_text_search
17731
+ ----------------------------------
17732
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17733
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17734
+  (0.1ms) rollback transaction
17735
+  (0.2ms) begin transaction
17736
+ Fixture Delete (0.3ms) DELETE FROM "documents"
17737
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 07:12:43')
17738
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 07:12:43')
17739
+  (0.8ms) commit transaction
17740
+  (0.1ms) begin transaction
17741
+ ----------------------------------
17742
+ DocumentTest: test_Search_document
17743
+ ----------------------------------
17744
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17745
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
17746
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17747
+  (0.1ms) rollback transaction
17748
+  (0.1ms) begin transaction
17749
+ -----------------------------
17750
+ DocumentTest: test_Suggestion
17751
+ -----------------------------
17752
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17753
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17754
+  (0.1ms) rollback transaction
17755
+  (0.1ms) begin transaction
17756
+ ----------------------------
17757
+ DocumentTest: test_the_truth
17758
+ ----------------------------
17759
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17760
+  (0.2ms) rollback transaction
17761
+  (0.1ms) begin transaction
17762
+ -----------------------------------------------------
17763
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17764
+ -----------------------------------------------------
17765
+  (0.1ms) rollback transaction
17766
+  (0.6ms) begin transaction
17767
+ Fixture Delete (0.5ms) DELETE FROM "articles"
17768
+ Fixture Insert (0.3ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 07:13:12')
17769
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 07:13:12')
17770
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 07:13:12')
17771
+  (0.8ms) commit transaction
17772
+  (0.1ms) begin transaction
17773
+ ---------------------------------
17774
+ ArticleTest: test_Ascending_order
17775
+ ---------------------------------
17776
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17777
+ Article Load (0.5ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17778
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17779
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17780
+  (0.2ms) rollback transaction
17781
+  (0.2ms) begin transaction
17782
+ --------------------------
17783
+ ArticleTest: test_Deletion
17784
+ --------------------------
17785
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17786
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17787
+  (0.2ms) rollback transaction
17788
+  (0.1ms) begin transaction
17789
+ ----------------------------------
17790
+ ArticleTest: test_Descending_order
17791
+ ----------------------------------
17792
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17793
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17794
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17795
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17796
+  (0.1ms) rollback transaction
17797
+  (0.1ms) begin transaction
17798
+ ----------------------------------
17799
+ ArticleTest: test_Full_text_search
17800
+ ----------------------------------
17801
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17802
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17803
+  (0.1ms) rollback transaction
17804
+  (0.1ms) begin transaction
17805
+ Fixture Delete (0.3ms) DELETE FROM "documents"
17806
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 07:13:13')
17807
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 07:13:13')
17808
+  (0.6ms) commit transaction
17809
+  (0.1ms) begin transaction
17810
+ ----------------------------------
17811
+ DocumentTest: test_Search_document
17812
+ ----------------------------------
17813
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17814
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
17815
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17816
+  (0.1ms) rollback transaction
17817
+  (0.1ms) begin transaction
17818
+ -----------------------------
17819
+ DocumentTest: test_Suggestion
17820
+ -----------------------------
17821
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17822
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17823
+  (0.1ms) rollback transaction
17824
+  (0.1ms) begin transaction
17825
+ ----------------------------
17826
+ DocumentTest: test_the_truth
17827
+ ----------------------------
17828
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17829
+  (0.2ms) rollback transaction
17830
+  (0.1ms) begin transaction
17831
+ -----------------------------------------------------
17832
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17833
+ -----------------------------------------------------
17834
+  (0.1ms) rollback transaction
17835
+  (0.7ms) begin transaction
17836
+ Fixture Delete (0.3ms) DELETE FROM "articles"
17837
+ Fixture Insert (0.3ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 07:14:33')
17838
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 07:14:33')
17839
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 07:14:33')
17840
+  (0.7ms) commit transaction
17841
+  (0.1ms) begin transaction
17842
+ ---------------------------------
17843
+ ArticleTest: test_Ascending_order
17844
+ ---------------------------------
17845
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17846
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17847
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17848
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17849
+  (0.1ms) rollback transaction
17850
+  (0.1ms) begin transaction
17851
+ --------------------------
17852
+ ArticleTest: test_Deletion
17853
+ --------------------------
17854
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17855
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17856
+  (0.2ms) rollback transaction
17857
+  (0.1ms) begin transaction
17858
+ ----------------------------------
17859
+ ArticleTest: test_Descending_order
17860
+ ----------------------------------
17861
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17862
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17863
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17864
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17865
+  (0.1ms) rollback transaction
17866
+  (0.1ms) begin transaction
17867
+ ----------------------------------
17868
+ ArticleTest: test_Full_text_search
17869
+ ----------------------------------
17870
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17871
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17872
+  (0.2ms) rollback transaction
17873
+  (0.2ms) begin transaction
17874
+ Fixture Delete (0.5ms) DELETE FROM "documents"
17875
+ Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 07:14:34')
17876
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 07:14:34')
17877
+  (1.1ms) commit transaction
17878
+  (0.1ms) begin transaction
17879
+ ----------------------------------
17880
+ DocumentTest: test_Search_document
17881
+ ----------------------------------
17882
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17883
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
17884
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17885
+  (0.1ms) rollback transaction
17886
+  (0.1ms) begin transaction
17887
+ -----------------------------
17888
+ DocumentTest: test_Suggestion
17889
+ -----------------------------
17890
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17891
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17892
+  (0.1ms) rollback transaction
17893
+  (0.1ms) begin transaction
17894
+ ----------------------------
17895
+ DocumentTest: test_the_truth
17896
+ ----------------------------
17897
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17898
+  (0.2ms) rollback transaction
17899
+  (0.1ms) begin transaction
17900
+ -----------------------------------------------------
17901
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17902
+ -----------------------------------------------------
17903
+  (0.1ms) rollback transaction
17904
+  (0.5ms) begin transaction
17905
+ Fixture Delete (0.4ms) DELETE FROM "articles"
17906
+ Fixture Insert (0.2ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 07:16:20')
17907
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 07:16:20')
17908
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 07:16:20')
17909
+  (0.7ms) commit transaction
17910
+  (0.1ms) begin transaction
17911
+ ---------------------------------
17912
+ ArticleTest: test_Ascending_order
17913
+ ---------------------------------
17914
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17915
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17916
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17917
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17918
+  (0.2ms) rollback transaction
17919
+  (0.2ms) begin transaction
17920
+ --------------------------
17921
+ ArticleTest: test_Deletion
17922
+ --------------------------
17923
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17924
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17925
+  (0.2ms) rollback transaction
17926
+  (0.1ms) begin transaction
17927
+ ----------------------------------
17928
+ ArticleTest: test_Descending_order
17929
+ ----------------------------------
17930
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17931
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17932
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17933
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17934
+  (0.1ms) rollback transaction
17935
+  (0.1ms) begin transaction
17936
+ ----------------------------------
17937
+ ArticleTest: test_Full_text_search
17938
+ ----------------------------------
17939
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17940
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17941
+  (0.1ms) rollback transaction
17942
+  (0.2ms) begin transaction
17943
+ Fixture Delete (0.3ms) DELETE FROM "documents"
17944
+ Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 07:16:21')
17945
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 07:16:21')
17946
+  (0.7ms) commit transaction
17947
+  (0.0ms) begin transaction
17948
+ ----------------------------------
17949
+ DocumentTest: test_Search_document
17950
+ ----------------------------------
17951
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17952
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
17953
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17954
+  (0.1ms) rollback transaction
17955
+  (0.1ms) begin transaction
17956
+ -----------------------------
17957
+ DocumentTest: test_Suggestion
17958
+ -----------------------------
17959
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17960
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
17961
+  (0.1ms) rollback transaction
17962
+  (0.1ms) begin transaction
17963
+ ----------------------------
17964
+ DocumentTest: test_the_truth
17965
+ ----------------------------
17966
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
17967
+  (0.2ms) rollback transaction
17968
+  (0.1ms) begin transaction
17969
+ -----------------------------------------------------
17970
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
17971
+ -----------------------------------------------------
17972
+  (0.1ms) rollback transaction
17973
+  (0.6ms) begin transaction
17974
+ Fixture Delete (0.4ms) DELETE FROM "articles"
17975
+ Fixture Insert (0.3ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 07:20:00')
17976
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 07:20:00')
17977
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 07:20:00')
17978
+  (0.7ms) commit transaction
17979
+  (0.1ms) begin transaction
17980
+ ---------------------------------
17981
+ ArticleTest: test_Ascending_order
17982
+ ---------------------------------
17983
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17984
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17985
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
17986
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
17987
+  (0.2ms) rollback transaction
17988
+  (0.1ms) begin transaction
17989
+ --------------------------
17990
+ ArticleTest: test_Deletion
17991
+ --------------------------
17992
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
17993
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
17994
+  (0.1ms) rollback transaction
17995
+  (0.1ms) begin transaction
17996
+ ----------------------------------
17997
+ ArticleTest: test_Descending_order
17998
+ ----------------------------------
17999
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
18000
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
18001
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
18002
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
18003
+  (0.1ms) rollback transaction
18004
+  (0.1ms) begin transaction
18005
+ ----------------------------------
18006
+ ArticleTest: test_Full_text_search
18007
+ ----------------------------------
18008
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
18009
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
18010
+  (0.1ms) rollback transaction
18011
+  (0.1ms) begin transaction
18012
+ Fixture Delete (0.3ms) DELETE FROM "documents"
18013
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 07:20:01')
18014
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 07:20:01')
18015
+  (1.0ms) commit transaction
18016
+  (0.1ms) begin transaction
18017
+ ----------------------------------
18018
+ DocumentTest: test_Search_document
18019
+ ----------------------------------
18020
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
18021
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
18022
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
18023
+  (0.1ms) rollback transaction
18024
+  (0.1ms) begin transaction
18025
+ -----------------------------
18026
+ DocumentTest: test_Suggestion
18027
+ -----------------------------
18028
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
18029
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
18030
+  (0.1ms) rollback transaction
18031
+  (0.1ms) begin transaction
18032
+ ----------------------------
18033
+ DocumentTest: test_the_truth
18034
+ ----------------------------
18035
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
18036
+  (0.2ms) rollback transaction
18037
+  (0.1ms) begin transaction
18038
+ -----------------------------------------------------
18039
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
18040
+ -----------------------------------------------------
18041
+  (0.1ms) rollback transaction
18042
+  (10.2ms) begin transaction
18043
+ Fixture Delete (0.7ms) DELETE FROM "articles"
18044
+ Fixture Insert (0.4ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 10:47:43')
18045
+ Fixture Insert (0.2ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 10:47:43')
18046
+ Fixture Insert (0.2ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 10:47:43')
18047
+  (1.5ms) commit transaction
18048
+  (0.1ms) begin transaction
18049
+ ---------------------------------
18050
+ ArticleTest: test_Ascending_order
18051
+ ---------------------------------
18052
+  (0.2ms) rollback transaction
18053
+  (0.6ms) begin transaction
18054
+ --------------------------
18055
+ ArticleTest: test_Deletion
18056
+ --------------------------
18057
+  (0.2ms) rollback transaction
18058
+  (0.1ms) begin transaction
18059
+ ----------------------------------
18060
+ ArticleTest: test_Descending_order
18061
+ ----------------------------------
18062
+  (0.2ms) rollback transaction
18063
+  (0.1ms) begin transaction
18064
+ ----------------------------------
18065
+ ArticleTest: test_Full_text_search
18066
+ ----------------------------------
18067
+  (0.2ms) rollback transaction
18068
+  (0.2ms) begin transaction
18069
+ Fixture Delete (0.7ms) DELETE FROM "documents"
18070
+ Fixture Insert (0.3ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 10:47:44')
18071
+ Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 10:47:44')
18072
+  (1.1ms) commit transaction
18073
+  (0.1ms) begin transaction
18074
+ ----------------------------------
18075
+ DocumentTest: test_Search_document
18076
+ ----------------------------------
18077
+  (0.2ms) rollback transaction
18078
+  (0.2ms) begin transaction
18079
+ -----------------------------
18080
+ DocumentTest: test_Suggestion
18081
+ -----------------------------
18082
+  (0.2ms) rollback transaction
18083
+  (0.1ms) begin transaction
18084
+ ----------------------------
18085
+ DocumentTest: test_the_truth
18086
+ ----------------------------
18087
+  (0.4ms) rollback transaction
18088
+  (0.2ms) begin transaction
18089
+ -----------------------------------------------------
18090
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
18091
+ -----------------------------------------------------
18092
+  (0.4ms) rollback transaction
18093
+  (3.3ms) begin transaction
18094
+ Fixture Delete (0.4ms) DELETE FROM "articles"
18095
+ Fixture Insert (0.3ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 10:49:41')
18096
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 10:49:41')
18097
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 10:49:41')
18098
+  (0.9ms) commit transaction
18099
+  (0.1ms) begin transaction
18100
+ ---------------------------------
18101
+ ArticleTest: test_Ascending_order
18102
+ ---------------------------------
18103
+  (0.2ms) rollback transaction
18104
+  (0.2ms) begin transaction
18105
+ --------------------------
18106
+ ArticleTest: test_Deletion
18107
+ --------------------------
18108
+  (0.1ms) rollback transaction
18109
+  (0.1ms) begin transaction
18110
+ ----------------------------------
18111
+ ArticleTest: test_Descending_order
18112
+ ----------------------------------
18113
+  (0.1ms) rollback transaction
18114
+  (0.1ms) begin transaction
18115
+ ----------------------------------
18116
+ ArticleTest: test_Full_text_search
18117
+ ----------------------------------
18118
+  (0.5ms) rollback transaction
18119
+  (0.2ms) begin transaction
18120
+ Fixture Delete (0.3ms) DELETE FROM "documents"
18121
+ Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 10:49:41')
18122
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 10:49:41')
18123
+  (1.0ms) commit transaction
18124
+  (0.1ms) begin transaction
18125
+ ----------------------------------
18126
+ DocumentTest: test_Search_document
18127
+ ----------------------------------
18128
+  (0.2ms) rollback transaction
18129
+  (0.3ms) begin transaction
18130
+ -----------------------------
18131
+ DocumentTest: test_Suggestion
18132
+ -----------------------------
18133
+  (0.1ms) rollback transaction
18134
+  (0.1ms) begin transaction
18135
+ ----------------------------
18136
+ DocumentTest: test_the_truth
18137
+ ----------------------------
18138
+  (0.1ms) rollback transaction
18139
+  (0.1ms) begin transaction
18140
+ -----------------------------------------------------
18141
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
18142
+ -----------------------------------------------------
18143
+  (0.1ms) rollback transaction
18144
+  (5.3ms) begin transaction
18145
+ Fixture Delete (0.5ms) DELETE FROM "articles"
18146
+ Fixture Insert (0.4ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 10:55:55')
18147
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 10:55:55')
18148
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 10:55:55')
18149
+  (0.9ms) commit transaction
18150
+  (0.1ms) begin transaction
18151
+ ---------------------------------
18152
+ ArticleTest: test_Ascending_order
18153
+ ---------------------------------
18154
+  (0.2ms) rollback transaction
18155
+  (0.1ms) begin transaction
18156
+ --------------------------
18157
+ ArticleTest: test_Deletion
18158
+ --------------------------
18159
+  (0.1ms) rollback transaction
18160
+  (0.1ms) begin transaction
18161
+ ----------------------------------
18162
+ ArticleTest: test_Descending_order
18163
+ ----------------------------------
18164
+  (0.1ms) rollback transaction
18165
+  (0.1ms) begin transaction
18166
+ ----------------------------------
18167
+ ArticleTest: test_Full_text_search
18168
+ ----------------------------------
18169
+  (0.1ms) rollback transaction
18170
+  (0.1ms) begin transaction
18171
+ Fixture Delete (0.3ms) DELETE FROM "documents"
18172
+ Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 10:55:55')
18173
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 10:55:55')
18174
+  (0.8ms) commit transaction
18175
+  (0.1ms) begin transaction
18176
+ ----------------------------------
18177
+ DocumentTest: test_Search_document
18178
+ ----------------------------------
18179
+  (0.2ms) rollback transaction
18180
+  (0.1ms) begin transaction
18181
+ -----------------------------
18182
+ DocumentTest: test_Suggestion
18183
+ -----------------------------
18184
+  (0.1ms) rollback transaction
18185
+  (0.1ms) begin transaction
18186
+ ----------------------------
18187
+ DocumentTest: test_the_truth
18188
+ ----------------------------
18189
+  (0.1ms) rollback transaction
18190
+  (0.1ms) begin transaction
18191
+ -----------------------------------------------------
18192
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
18193
+ -----------------------------------------------------
18194
+  (0.1ms) rollback transaction
18195
+  (3.5ms) begin transaction
18196
+ Fixture Delete (0.6ms) DELETE FROM "articles"
18197
+ Fixture Insert (0.3ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 10:57:15')
18198
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 10:57:15')
18199
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 10:57:15')
18200
+  (0.8ms) commit transaction
18201
+  (0.1ms) begin transaction
18202
+ ---------------------------------
18203
+ ArticleTest: test_Ascending_order
18204
+ ---------------------------------
18205
+ Article Load (0.5ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
18206
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
18207
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
18208
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
18209
+  (0.2ms) rollback transaction
18210
+  (0.1ms) begin transaction
18211
+ --------------------------
18212
+ ArticleTest: test_Deletion
18213
+ --------------------------
18214
+ Article Load (0.5ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
18215
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
18216
+  (0.2ms) rollback transaction
18217
+  (0.1ms) begin transaction
18218
+ ----------------------------------
18219
+ ArticleTest: test_Descending_order
18220
+ ----------------------------------
18221
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
18222
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 3]]
18223
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 2]]
18224
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
18225
+  (0.1ms) rollback transaction
18226
+  (0.1ms) begin transaction
18227
+ ----------------------------------
18228
+ ArticleTest: test_Full_text_search
18229
+ ----------------------------------
18230
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
18231
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
18232
+  (0.1ms) rollback transaction
18233
+  (0.2ms) begin transaction
18234
+ Fixture Delete (0.4ms) DELETE FROM "documents"
18235
+ Fixture Insert (0.2ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 10:57:21')
18236
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 10:57:21')
18237
+  (1.0ms) commit transaction
18238
+  (0.1ms) begin transaction
18239
+ ----------------------------------
18240
+ DocumentTest: test_Search_document
18241
+ ----------------------------------
18242
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
18243
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
18244
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
18245
+  (0.2ms) rollback transaction
18246
+  (0.1ms) begin transaction
18247
+ -----------------------------
18248
+ DocumentTest: test_Suggestion
18249
+ -----------------------------
18250
+ Document Load (0.5ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
18251
+ Document Load (0.2ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 2]]
18252
+  (0.2ms) rollback transaction
18253
+  (0.1ms) begin transaction
18254
+ ----------------------------
18255
+ DocumentTest: test_the_truth
18256
+ ----------------------------
18257
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
18258
+  (0.2ms) rollback transaction
18259
+  (0.1ms) begin transaction
18260
+ -----------------------------------------------------
18261
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
18262
+ -----------------------------------------------------
18263
+  (0.1ms) rollback transaction
18264
+  (5.1ms) begin transaction
18265
+ Fixture Delete (0.5ms) DELETE FROM "articles"
18266
+ Fixture Insert (0.2ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 11:15:10')
18267
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 11:15:10')
18268
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 11:15:10')
18269
+  (0.8ms) commit transaction
18270
+  (0.1ms) begin transaction
18271
+ ---------------------------------
18272
+ ArticleTest: test_Ascending_order
18273
+ ---------------------------------
18274
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
18275
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" IN (1, 2, 3)
18276
+  (0.1ms) rollback transaction
18277
+  (0.1ms) begin transaction
18278
+ --------------------------
18279
+ ArticleTest: test_Deletion
18280
+ --------------------------
18281
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
18282
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]]
18283
+  (0.1ms) rollback transaction
18284
+  (0.1ms) begin transaction
18285
+ ----------------------------------
18286
+ ArticleTest: test_Descending_order
18287
+ ----------------------------------
18288
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
18289
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" IN (3, 2, 1)
18290
+  (0.1ms) rollback transaction
18291
+  (0.1ms) begin transaction
18292
+ ----------------------------------
18293
+ ArticleTest: test_Full_text_search
18294
+ ----------------------------------
18295
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
18296
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]]
18297
+  (0.1ms) rollback transaction
18298
+  (0.1ms) begin transaction
18299
+ Fixture Delete (0.4ms) DELETE FROM "documents"
18300
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 11:15:12')
18301
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 11:15:12')
18302
+  (0.8ms) commit transaction
18303
+  (0.1ms) begin transaction
18304
+ ----------------------------------
18305
+ DocumentTest: test_Search_document
18306
+ ----------------------------------
18307
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
18308
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" IN (1, 2)
18309
+  (0.1ms) rollback transaction
18310
+  (0.1ms) begin transaction
18311
+ -----------------------------
18312
+ DocumentTest: test_Suggestion
18313
+ -----------------------------
18314
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
18315
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "2"]]
18316
+  (0.1ms) rollback transaction
18317
+  (0.1ms) begin transaction
18318
+ -----------------------------------------------------
18319
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
18320
+ -----------------------------------------------------
18321
+  (0.1ms) rollback transaction
18322
+  (3.3ms) begin transaction
18323
+ Fixture Delete (0.7ms) DELETE FROM "articles"
18324
+ Fixture Insert (0.3ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (1, 'Weather report', 'Sunny weather today', 1, '2013-07-11 17:06:19.000000', '2013-10-23 11:34:50')
18325
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (2, 'Active record rocks', 'Using OpenSearchServer with active record is simple', 2, '2013-07-11 17:06:19.000000', '2013-10-23 11:34:50')
18326
+ Fixture Insert (0.1ms) INSERT INTO "articles" ("id", "title", "content", "category_id", "updated_at", "created_at") VALUES (3, 'Breaking news', 'A new version should be available soon', 1000, '2013-07-11 17:06:19.000000', '2013-10-23 11:34:50')
18327
+  (1.4ms) commit transaction
18328
+  (0.1ms) begin transaction
18329
+ ---------------------------------
18330
+ ArticleTest: test_Ascending_order
18331
+ ---------------------------------
18332
+ Article Load (0.5ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
18333
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" IN (1, 2, 3)
18334
+  (0.2ms) rollback transaction
18335
+  (0.2ms) begin transaction
18336
+ --------------------------
18337
+ ArticleTest: test_Deletion
18338
+ --------------------------
18339
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
18340
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]]
18341
+  (0.1ms) rollback transaction
18342
+  (0.1ms) begin transaction
18343
+ ----------------------------------
18344
+ ArticleTest: test_Descending_order
18345
+ ----------------------------------
18346
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
18347
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" IN (3, 2, 1)
18348
+  (0.1ms) rollback transaction
18349
+  (0.1ms) begin transaction
18350
+ ----------------------------------
18351
+ ArticleTest: test_Full_text_search
18352
+ ----------------------------------
18353
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" ORDER BY "articles"."id" ASC LIMIT 1000
18354
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", "1"]]
18355
+  (0.1ms) rollback transaction
18356
+  (0.1ms) begin transaction
18357
+ Fixture Delete (0.3ms) DELETE FROM "documents"
18358
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (1, 1, 1, 'my wonderful document', '2013-07-11 17:06:19.000000', 1, 1, 1, 'application/pdf', 'MyString', '2013-10-23 11:34:52')
18359
+ Fixture Insert (0.1ms) INSERT INTO "documents" ("id", "folder_id", "room_id", "name", "updated_at", "uuid", "user_id", "file_size", "file_content_type", "state", "created_at") VALUES (2, 2, 2, 'another amazing document', '2013-07-11 17:06:19.000000', 1, 2, 2, 'application/xml', 'MyString', '2013-10-23 11:34:52')
18360
+  (2.3ms) commit transaction
18361
+  (0.1ms) begin transaction
18362
+ ----------------------------------
18363
+ DocumentTest: test_Search_document
18364
+ ----------------------------------
18365
+ Document Load (0.5ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
18366
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" IN (1, 2)
18367
+  (0.2ms) rollback transaction
18368
+  (0.1ms) begin transaction
18369
+ -----------------------------
18370
+ DocumentTest: test_Suggestion
18371
+ -----------------------------
18372
+ Document Load (0.4ms) SELECT "documents".* FROM "documents" ORDER BY "documents"."id" ASC LIMIT 1000
18373
+ Document Load (0.3ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "2"]]
18374
+  (0.1ms) rollback transaction
18375
+  (0.1ms) begin transaction
18376
+ -----------------------------------------------------
18377
+ OssActiveRecordTest: test_OssActiveRecord_is_a_module
16921
18378
  -----------------------------------------------------
16922
18379
   (0.1ms) rollback transaction