pacecar 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. data/.gitignore +6 -0
  2. data/.travis.yml +4 -0
  3. data/Appraisals +22 -0
  4. data/Gemfile +1 -7
  5. data/Gemfile.lock +129 -0
  6. data/README.md +33 -33
  7. data/Rakefile +2 -19
  8. data/gemfiles/rails-3.0.11-database-mysql.gemfile +8 -0
  9. data/gemfiles/rails-3.0.11-database-mysql.gemfile.lock +134 -0
  10. data/gemfiles/rails-3.0.11-database-mysql2.gemfile +8 -0
  11. data/gemfiles/rails-3.0.11-database-mysql2.gemfile.lock +134 -0
  12. data/gemfiles/rails-3.0.11-database-pg.gemfile +8 -0
  13. data/gemfiles/rails-3.0.11-database-pg.gemfile.lock +134 -0
  14. data/gemfiles/rails-3.0.11-database-sqlite3-ruby.gemfile +8 -0
  15. data/gemfiles/rails-3.0.11-database-sqlite3-ruby.gemfile.lock +136 -0
  16. data/gemfiles/rails-3.0.11-database-sqlite3.gemfile +8 -0
  17. data/gemfiles/rails-3.0.11-database-sqlite3.gemfile.lock +134 -0
  18. data/gemfiles/rails-3.1.3-database-mysql.gemfile +8 -0
  19. data/gemfiles/rails-3.1.3-database-mysql.gemfile.lock +144 -0
  20. data/gemfiles/rails-3.1.3-database-mysql2.gemfile +8 -0
  21. data/gemfiles/rails-3.1.3-database-mysql2.gemfile.lock +144 -0
  22. data/gemfiles/rails-3.1.3-database-pg.gemfile +8 -0
  23. data/gemfiles/rails-3.1.3-database-pg.gemfile.lock +144 -0
  24. data/gemfiles/rails-3.1.3-database-sqlite3-ruby.gemfile +8 -0
  25. data/gemfiles/rails-3.1.3-database-sqlite3-ruby.gemfile.lock +146 -0
  26. data/gemfiles/rails-3.1.3-database-sqlite3.gemfile +8 -0
  27. data/gemfiles/rails-3.1.3-database-sqlite3.gemfile.lock +144 -0
  28. data/lib/pacecar.rb +1 -0
  29. data/lib/pacecar/helpers.rb +1 -1
  30. data/lib/pacecar/version.rb +3 -0
  31. data/pacecar.gemspec +25 -0
  32. data/spec/associations_spec.rb +32 -0
  33. data/spec/boolean_spec.rb +30 -0
  34. data/spec/datetime_spec.rb +92 -0
  35. data/spec/dummy/Rakefile +7 -0
  36. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  37. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  38. data/spec/dummy/app/models/article.rb +5 -0
  39. data/spec/dummy/app/models/comment.rb +5 -0
  40. data/spec/dummy/app/models/mammal.rb +7 -0
  41. data/spec/dummy/app/models/post.rb +14 -0
  42. data/spec/dummy/app/models/user.rb +14 -0
  43. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  44. data/spec/dummy/config.ru +4 -0
  45. data/spec/dummy/config/application.rb +45 -0
  46. data/spec/dummy/config/boot.rb +10 -0
  47. data/spec/dummy/config/database.yml +51 -0
  48. data/spec/dummy/config/environment.rb +5 -0
  49. data/spec/dummy/config/environments/development.rb +26 -0
  50. data/spec/dummy/config/environments/production.rb +49 -0
  51. data/spec/dummy/config/environments/test.rb +35 -0
  52. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  53. data/spec/dummy/config/initializers/inflections.rb +10 -0
  54. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  55. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  56. data/spec/dummy/config/initializers/session_store.rb +8 -0
  57. data/spec/dummy/config/locales/en.yml +5 -0
  58. data/spec/dummy/config/routes.rb +58 -0
  59. data/spec/dummy/db/migrate/20100419201348_create_schema.rb +37 -0
  60. data/spec/dummy/public/404.html +26 -0
  61. data/spec/dummy/public/422.html +26 -0
  62. data/spec/dummy/public/500.html +26 -0
  63. data/spec/dummy/public/favicon.ico +0 -0
  64. data/spec/dummy/public/javascripts/application.js +2 -0
  65. data/spec/dummy/public/javascripts/controls.js +965 -0
  66. data/spec/dummy/public/javascripts/dragdrop.js +974 -0
  67. data/spec/dummy/public/javascripts/effects.js +1123 -0
  68. data/spec/dummy/public/javascripts/prototype.js +6001 -0
  69. data/spec/dummy/public/javascripts/rails.js +191 -0
  70. data/spec/dummy/public/stylesheets/.gitkeep +0 -0
  71. data/spec/dummy/script/rails +6 -0
  72. data/spec/duration_spec.rb +22 -0
  73. data/spec/factories.rb +26 -0
  74. data/spec/helpers_spec.rb +49 -0
  75. data/spec/integration/navigation_spec.rb +9 -0
  76. data/spec/limit_spec.rb +25 -0
  77. data/spec/numeric_spec.rb +43 -0
  78. data/spec/order_spec.rb +22 -0
  79. data/spec/pacecar_spec.rb +7 -0
  80. data/spec/polymorph_spec.rb +18 -0
  81. data/spec/presence_spec.rb +23 -0
  82. data/spec/ranking_spec.rb +63 -0
  83. data/spec/search_spec.rb +63 -0
  84. data/spec/spec_helper.rb +38 -0
  85. data/spec/state_spec.rb +69 -0
  86. metadata +202 -10
@@ -0,0 +1,63 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Ranking', 'has ranking' do
4
+
5
+ before do
6
+ @many = Factory :user
7
+ 5.times { Factory :comment, :user => @many }
8
+ @few = Factory :user
9
+ 2.times { Factory :comment, :user => @few }
10
+ @none = Factory :user
11
+ end
12
+
13
+ it "should set the correct expected values on a maximum_ column method" do
14
+ output = User.maximum_comments
15
+ output.should == [@many, @few]
16
+ output.first.comments_count.to_i.should == 5
17
+ output.last.comments_count.to_i.should == 2
18
+ end
19
+
20
+ it "should set the correct expected values on a minimum_ column method" do
21
+ output = User.minimum_comments
22
+ output.should == [@few, @many]
23
+ output.first.comments_count.to_i.should == 2
24
+ output.last.comments_count.to_i.should == 5
25
+ end
26
+
27
+ end
28
+
29
+ describe 'Ranking', 'has calculated records' do
30
+ before do
31
+ @user_one = Factory :user
32
+ @user_two = Factory :user
33
+ Factory :comment, :user => @user_one, :rating => 8
34
+ Factory :comment, :user => @user_one, :rating => 6
35
+ Factory :comment, :user => @user_two, :rating => 4
36
+ Factory :comment, :user => @user_two, :rating => 3
37
+ Factory :comment, :user => @user_two, :rating => 2
38
+ end
39
+ it "should order records based on association column highest average" do
40
+ output = User.by_comments_highest_rating_average
41
+ output.should == [@user_one, @user_two]
42
+ output.first.comments_rating_average.to_i.should == 7
43
+ output.last.comments_rating_average.to_i.should == 3
44
+ end
45
+ it "should order records based on association column lowest average" do
46
+ output = User.by_comments_lowest_rating_average
47
+ output.should == [@user_two, @user_one]
48
+ output.first.comments_rating_average.to_i.should == 3
49
+ output.last.comments_rating_average.to_i.should == 7
50
+ end
51
+ it "should order records based on association column highest total" do
52
+ output = User.by_comments_highest_rating_total
53
+ output.should == [@user_one, @user_two]
54
+ output.first.comments_rating_total.to_i.should == 14
55
+ output.last.comments_rating_total.to_i.should == 9
56
+ end
57
+ it "should order records based on association column lowest total" do
58
+ output = User.by_comments_lowest_rating_total
59
+ output.should == [@user_two, @user_one]
60
+ output.first.comments_rating_total.to_i.should == 9
61
+ output.last.comments_rating_total.to_i.should == 14
62
+ end
63
+ end
@@ -0,0 +1,63 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Search' do
4
+
5
+ before do
6
+ @abe = Factory :user, :first_name => 'Abe', :last_name => 'Anderson', :description => 'Apple'
7
+ @bob = Factory :user, :first_name => 'Bob', :last_name => 'Babson', :description => 'Banana'
8
+ @cindy = Factory :user, :first_name => 'Cindy', :last_name => 'Clarkson', :description => 'Cookie'
9
+ @dave = Factory :user, :first_name => 'Dave'
10
+ @ed = Factory :user, :last_name => 'Dave'
11
+ @frank = Factory :user, :description => 'Dave'
12
+ @george = Factory :user, :first_name => 'Dave', :last_name => 'Dave', :description => 'Dave'
13
+
14
+ @null = Factory :user, :first_name => nil, :last_name => nil, :description => nil
15
+ end
16
+
17
+ it "should set the correct expected values for a _equals column method" do
18
+ User.first_name_equals('Abe').should == [@abe]
19
+ end
20
+
21
+ it "should set the correct expected values for a _equals column method with an Array as value" do
22
+ User.first_name_equals(['Abe', 'Bob']).should == [@abe, @bob]
23
+ end
24
+
25
+ it "should set the correct expected values for a _equals column method with nil as value" do
26
+ User.first_name_equals(nil).should == [@ed, @frank, @null]
27
+ end
28
+
29
+ it "should set the correct expected values for a _matches column method" do
30
+ User.first_name_matches('ind').should == [@cindy]
31
+ User.first_name_matches('IND').should == [@cindy]
32
+ end
33
+
34
+ it "should set the correct expected values for a _starts_with column method" do
35
+ User.first_name_starts_with('Ab').should == [@abe]
36
+ User.first_name_starts_with('aB').should == [@abe]
37
+ end
38
+
39
+ it "should set the correct expected values for a _ends_with column method" do
40
+ User.first_name_ends_with('ob').should == [@bob]
41
+ User.first_name_ends_with('Ob').should == [@bob]
42
+ end
43
+
44
+ it "should set the correct expected values for a search_for method" do
45
+ User.search_for('Dave').should == [@dave, @ed, @frank, @george]
46
+ User.search_for('dave').should == [@dave, @ed, @frank, @george]
47
+ end
48
+
49
+ it "should set the correct expected values for a search_for method with :on option" do
50
+ User.search_for('Dave', :on => [:first_name, :description]).should == [@dave, @frank, @george]
51
+ User.search_for('dave', :on => [:first_name, :description]).should == [@dave, @frank, @george]
52
+ end
53
+
54
+ it "should set the correct expected values for a search_for method with an :require option" do
55
+ User.search_for('Dave', :require => :all).should == [@george]
56
+ User.search_for('dave', :require => :all).should == [@george]
57
+ end
58
+
59
+ it "should set the correct expected values for a search_for method on a class with no columns" do
60
+ Mammal.search_for('test').should == []
61
+ end
62
+
63
+ end
@@ -0,0 +1,38 @@
1
+ # Configure Rails Envinronment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+ require "rspec/rails"
7
+
8
+ ActionMailer::Base.delivery_method = :test
9
+ ActionMailer::Base.perform_deliveries = true
10
+ ActionMailer::Base.default_url_options[:host] = "test.com"
11
+
12
+ Rails.backtrace_cleaner.remove_silencers!
13
+
14
+ # Configure capybara for integration testing
15
+ require "capybara/rails"
16
+ Capybara.default_driver = :rack_test
17
+ Capybara.default_selector = :css
18
+
19
+ # Run any available migration
20
+ ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
21
+
22
+ # Load support files
23
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
24
+
25
+ RSpec.configure do |config|
26
+ # Remove this line if you don't want RSpec's should and should_not
27
+ # methods or matchers
28
+ require 'rspec/expectations'
29
+ config.include RSpec::Matchers
30
+
31
+ # == Mock Framework
32
+ config.mock_with :mocha
33
+
34
+ config.use_transactional_fixtures = true
35
+ end
36
+
37
+ require 'factory_girl'
38
+ require 'factories'
@@ -0,0 +1,69 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'State' do
4
+
5
+ before do
6
+ @draft_post = Factory :post, :publication_state => 'Draft'
7
+ @final_post = Factory :post, :publication_state => 'Final'
8
+ @free_post = Factory :post, :post_type => 'Free'
9
+ @open_post = Factory :post, :post_type => 'Open'
10
+
11
+ @post = Post.new
12
+ Post::PUBLICATION_STATES.should_not be_nil
13
+ end
14
+
15
+ it "should set the correct expected values for a column_state _state method" do
16
+ Post.publication_state_draft.should == [@draft_post]
17
+ end
18
+
19
+ it "should set the correct expected values for a column_not_state _state method" do
20
+ Post.publication_state_not_draft.should == [@final_post]
21
+ end
22
+
23
+ it "should set the correct expected values for a column_state _type method" do
24
+ Post.post_type_free.should == [@free_post]
25
+ end
26
+
27
+ it "should set the correct expected values for a column_not_state _type method" do
28
+ Post.post_type_not_free.should == [@open_post]
29
+ end
30
+
31
+ it "should set the correct expected values for a column_state method" do
32
+ Post.post_type('Open').should == [@open_post]
33
+ end
34
+
35
+ it "should set the correct expected values for a column_state_not method" do
36
+ Post.post_type_not('Open').should == [@free_post]
37
+ end
38
+
39
+ Post::PUBLICATION_STATES.each do |state|
40
+ it "should have a query method for a #{state} state value" do
41
+ @post.should respond_to("publication_state_#{state.downcase}?")
42
+ end
43
+
44
+ it "should have a non query method for a #{state} state value" do
45
+ @post.should respond_to("publication_state_not_#{state.downcase}?")
46
+ end
47
+
48
+ it "should respond true to query method for a #{state} state value when in that state" do
49
+ @post.publication_state = state
50
+ @post.send("publication_state_#{state.downcase}?").should be_true
51
+ end
52
+
53
+ it "should respond false to not query method for a #{state} state value when in that state" do
54
+ @post.publication_state = state
55
+ @post.send("publication_state_not_#{state.downcase}?").should be_false
56
+ end
57
+
58
+ it "should respond false to query method for a #{state} state value when not in that state" do
59
+ @post.publication_state = 'Invalid'
60
+ @post.send("publication_state_#{state.downcase}?").should be_false
61
+ end
62
+
63
+ it "should respond true to not query method for a #{state} state value when not in that state" do
64
+ @post.publication_state = 'Invalid'
65
+ @post.send("publication_state_not_#{state.downcase}?").should be_true
66
+ end
67
+ end
68
+
69
+ end
metadata CHANGED
@@ -1,26 +1,114 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pacecar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matt Jankowski
9
+ - Gabe Berke-Williams
9
10
  - Chad Pytel
10
11
  - Ryan McGeary
11
12
  - Mike Burns
13
+ - Ryan Sonnek
14
+ - Thomas Dippel
12
15
  - Tristan Dunn
13
16
  autorequire:
14
17
  bindir: bin
15
18
  cert_chain: []
16
- date: 2011-10-12 00:00:00.000000000Z
17
- dependencies: []
19
+ date: 2012-01-09 00:00:00.000000000Z
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: appraisal
23
+ requirement: &2153123720 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ version: '0.4'
29
+ type: :development
30
+ prerelease: false
31
+ version_requirements: *2153123720
32
+ - !ruby/object:Gem::Dependency
33
+ name: capybara
34
+ requirement: &2153123220 !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: 0.4.0
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: *2153123220
43
+ - !ruby/object:Gem::Dependency
44
+ name: mocha
45
+ requirement: &2153122840 !ruby/object:Gem::Requirement
46
+ none: false
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ type: :development
52
+ prerelease: false
53
+ version_requirements: *2153122840
54
+ - !ruby/object:Gem::Dependency
55
+ name: rspec-rails
56
+ requirement: &2153122300 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.4.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: *2153122300
65
+ - !ruby/object:Gem::Dependency
66
+ name: factory_girl_rails
67
+ requirement: &2153121880 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ! '>='
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ type: :development
74
+ prerelease: false
75
+ version_requirements: *2153121880
18
76
  description: Generated scopes for ActiveRecord classes.
19
77
  email: support@thoughtbot.com
20
78
  executables: []
21
79
  extensions: []
22
80
  extra_rdoc_files: []
23
81
  files:
82
+ - .gitignore
83
+ - .travis.yml
84
+ - Appraisals
85
+ - Gemfile
86
+ - Gemfile.lock
87
+ - MIT-LICENSE
88
+ - README.md
89
+ - Rakefile
90
+ - gemfiles/rails-3.0.11-database-mysql.gemfile
91
+ - gemfiles/rails-3.0.11-database-mysql.gemfile.lock
92
+ - gemfiles/rails-3.0.11-database-mysql2.gemfile
93
+ - gemfiles/rails-3.0.11-database-mysql2.gemfile.lock
94
+ - gemfiles/rails-3.0.11-database-pg.gemfile
95
+ - gemfiles/rails-3.0.11-database-pg.gemfile.lock
96
+ - gemfiles/rails-3.0.11-database-sqlite3-ruby.gemfile
97
+ - gemfiles/rails-3.0.11-database-sqlite3-ruby.gemfile.lock
98
+ - gemfiles/rails-3.0.11-database-sqlite3.gemfile
99
+ - gemfiles/rails-3.0.11-database-sqlite3.gemfile.lock
100
+ - gemfiles/rails-3.1.3-database-mysql.gemfile
101
+ - gemfiles/rails-3.1.3-database-mysql.gemfile.lock
102
+ - gemfiles/rails-3.1.3-database-mysql2.gemfile
103
+ - gemfiles/rails-3.1.3-database-mysql2.gemfile.lock
104
+ - gemfiles/rails-3.1.3-database-pg.gemfile
105
+ - gemfiles/rails-3.1.3-database-pg.gemfile.lock
106
+ - gemfiles/rails-3.1.3-database-sqlite3-ruby.gemfile
107
+ - gemfiles/rails-3.1.3-database-sqlite3-ruby.gemfile.lock
108
+ - gemfiles/rails-3.1.3-database-sqlite3.gemfile
109
+ - gemfiles/rails-3.1.3-database-sqlite3.gemfile.lock
110
+ - init.rb
111
+ - lib/pacecar.rb
24
112
  - lib/pacecar/associations.rb
25
113
  - lib/pacecar/boolean.rb
26
114
  - lib/pacecar/datetime.rb
@@ -34,12 +122,62 @@ files:
34
122
  - lib/pacecar/ranking.rb
35
123
  - lib/pacecar/search.rb
36
124
  - lib/pacecar/state.rb
37
- - lib/pacecar.rb
38
- - init.rb
39
- - MIT-LICENSE
40
- - Rakefile
41
- - Gemfile
42
- - README.md
125
+ - lib/pacecar/version.rb
126
+ - pacecar.gemspec
127
+ - spec/associations_spec.rb
128
+ - spec/boolean_spec.rb
129
+ - spec/datetime_spec.rb
130
+ - spec/dummy/Rakefile
131
+ - spec/dummy/app/controllers/application_controller.rb
132
+ - spec/dummy/app/helpers/application_helper.rb
133
+ - spec/dummy/app/models/article.rb
134
+ - spec/dummy/app/models/comment.rb
135
+ - spec/dummy/app/models/mammal.rb
136
+ - spec/dummy/app/models/post.rb
137
+ - spec/dummy/app/models/user.rb
138
+ - spec/dummy/app/views/layouts/application.html.erb
139
+ - spec/dummy/config.ru
140
+ - spec/dummy/config/application.rb
141
+ - spec/dummy/config/boot.rb
142
+ - spec/dummy/config/database.yml
143
+ - spec/dummy/config/environment.rb
144
+ - spec/dummy/config/environments/development.rb
145
+ - spec/dummy/config/environments/production.rb
146
+ - spec/dummy/config/environments/test.rb
147
+ - spec/dummy/config/initializers/backtrace_silencers.rb
148
+ - spec/dummy/config/initializers/inflections.rb
149
+ - spec/dummy/config/initializers/mime_types.rb
150
+ - spec/dummy/config/initializers/secret_token.rb
151
+ - spec/dummy/config/initializers/session_store.rb
152
+ - spec/dummy/config/locales/en.yml
153
+ - spec/dummy/config/routes.rb
154
+ - spec/dummy/db/migrate/20100419201348_create_schema.rb
155
+ - spec/dummy/public/404.html
156
+ - spec/dummy/public/422.html
157
+ - spec/dummy/public/500.html
158
+ - spec/dummy/public/favicon.ico
159
+ - spec/dummy/public/javascripts/application.js
160
+ - spec/dummy/public/javascripts/controls.js
161
+ - spec/dummy/public/javascripts/dragdrop.js
162
+ - spec/dummy/public/javascripts/effects.js
163
+ - spec/dummy/public/javascripts/prototype.js
164
+ - spec/dummy/public/javascripts/rails.js
165
+ - spec/dummy/public/stylesheets/.gitkeep
166
+ - spec/dummy/script/rails
167
+ - spec/duration_spec.rb
168
+ - spec/factories.rb
169
+ - spec/helpers_spec.rb
170
+ - spec/integration/navigation_spec.rb
171
+ - spec/limit_spec.rb
172
+ - spec/numeric_spec.rb
173
+ - spec/order_spec.rb
174
+ - spec/pacecar_spec.rb
175
+ - spec/polymorph_spec.rb
176
+ - spec/presence_spec.rb
177
+ - spec/ranking_spec.rb
178
+ - spec/search_spec.rb
179
+ - spec/spec_helper.rb
180
+ - spec/state_spec.rb
43
181
  homepage: http://github.com/thoughtbot/pacecar
44
182
  licenses: []
45
183
  post_install_message:
@@ -64,4 +202,58 @@ rubygems_version: 1.8.11
64
202
  signing_key:
65
203
  specification_version: 3
66
204
  summary: Pacecar adds scope methods to ActiveRecord classes via database column introspection.
67
- test_files: []
205
+ test_files:
206
+ - spec/associations_spec.rb
207
+ - spec/boolean_spec.rb
208
+ - spec/datetime_spec.rb
209
+ - spec/dummy/Rakefile
210
+ - spec/dummy/app/controllers/application_controller.rb
211
+ - spec/dummy/app/helpers/application_helper.rb
212
+ - spec/dummy/app/models/article.rb
213
+ - spec/dummy/app/models/comment.rb
214
+ - spec/dummy/app/models/mammal.rb
215
+ - spec/dummy/app/models/post.rb
216
+ - spec/dummy/app/models/user.rb
217
+ - spec/dummy/app/views/layouts/application.html.erb
218
+ - spec/dummy/config.ru
219
+ - spec/dummy/config/application.rb
220
+ - spec/dummy/config/boot.rb
221
+ - spec/dummy/config/database.yml
222
+ - spec/dummy/config/environment.rb
223
+ - spec/dummy/config/environments/development.rb
224
+ - spec/dummy/config/environments/production.rb
225
+ - spec/dummy/config/environments/test.rb
226
+ - spec/dummy/config/initializers/backtrace_silencers.rb
227
+ - spec/dummy/config/initializers/inflections.rb
228
+ - spec/dummy/config/initializers/mime_types.rb
229
+ - spec/dummy/config/initializers/secret_token.rb
230
+ - spec/dummy/config/initializers/session_store.rb
231
+ - spec/dummy/config/locales/en.yml
232
+ - spec/dummy/config/routes.rb
233
+ - spec/dummy/db/migrate/20100419201348_create_schema.rb
234
+ - spec/dummy/public/404.html
235
+ - spec/dummy/public/422.html
236
+ - spec/dummy/public/500.html
237
+ - spec/dummy/public/favicon.ico
238
+ - spec/dummy/public/javascripts/application.js
239
+ - spec/dummy/public/javascripts/controls.js
240
+ - spec/dummy/public/javascripts/dragdrop.js
241
+ - spec/dummy/public/javascripts/effects.js
242
+ - spec/dummy/public/javascripts/prototype.js
243
+ - spec/dummy/public/javascripts/rails.js
244
+ - spec/dummy/public/stylesheets/.gitkeep
245
+ - spec/dummy/script/rails
246
+ - spec/duration_spec.rb
247
+ - spec/factories.rb
248
+ - spec/helpers_spec.rb
249
+ - spec/integration/navigation_spec.rb
250
+ - spec/limit_spec.rb
251
+ - spec/numeric_spec.rb
252
+ - spec/order_spec.rb
253
+ - spec/pacecar_spec.rb
254
+ - spec/polymorph_spec.rb
255
+ - spec/presence_spec.rb
256
+ - spec/ranking_spec.rb
257
+ - spec/search_spec.rb
258
+ - spec/spec_helper.rb
259
+ - spec/state_spec.rb