magic_grid 0.12.4 → 0.12.5

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.
@@ -127,7 +127,7 @@ describe MagicGrid::Collection do
127
127
  describe "#perform_pagination" do
128
128
 
129
129
  context "page counts" do
130
- let(:array) { Array.new(100) { 1 } }
130
+ let(:array) { Array.new(100) { 1 } }
131
131
  subject { MagicGrid::Collection.new(array, nil) }
132
132
 
133
133
  it "should correctly calculate uneven page splits" do
@@ -148,23 +148,30 @@ describe MagicGrid::Collection do
148
148
  it "should round down to the last page if a later page is requested" do
149
149
  subject.per_page = 3
150
150
  subject.total_pages.should == 4
151
- subject.apply_pagination(5).perform_pagination(array)
151
+ subject.apply_pagination(5)
152
+ subject.perform_pagination(array)
152
153
  subject.current_page.should == 4
153
154
  end
154
155
 
155
156
  context "providing the correct data" do
156
157
  before(:each) { subject.per_page = 3 }
157
158
  it "handles pages beyond lower bound" do
158
- subject.apply_pagination(0).perform_pagination(array).should == [1,2,3]
159
+ subject.apply_pagination(0)
160
+ subject.perform_pagination(array).should == [1,2,3]
159
161
  end
160
162
  it "handles pages in bounds" do
161
- subject.apply_pagination(1).perform_pagination(array).should == [1,2,3]
162
- subject.apply_pagination(2).perform_pagination(array).should == [4,5,6]
163
- subject.apply_pagination(3).perform_pagination(array).should == [7,8,9]
164
- subject.apply_pagination(4).perform_pagination(array).should == [10]
163
+ subject.apply_pagination(1)
164
+ subject.perform_pagination(array).should == [1,2,3]
165
+ subject.apply_pagination(2)
166
+ subject.perform_pagination(array).should == [4,5,6]
167
+ subject.apply_pagination(3)
168
+ subject.perform_pagination(array).should == [7,8,9]
169
+ subject.apply_pagination(4)
170
+ subject.perform_pagination(array).should == [10]
165
171
  end
166
172
  it "handles pages above bounds" do
167
- subject.apply_pagination(5).perform_pagination(array).should == [10]
173
+ subject.apply_pagination(5)
174
+ subject.perform_pagination(array).should == [10]
168
175
  end
169
176
  end
170
177
  end
@@ -176,7 +183,8 @@ describe MagicGrid::Collection do
176
183
  context "when #paginate (aka WillPaginate) is available" do
177
184
  it "should call paginate helper when it is detected" do
178
185
  array = [1].tap do |a|
179
- a.should_receive(:paginate).with(:page => 1, :per_page => 1, :total_entries => 1) { a }
186
+ a.should_receive(:paginate).with(:page => 1, :per_page => 1,
187
+ :total_entries => 1) { a }
180
188
  end
181
189
  collection = MagicGrid::Collection.new(array, nil)
182
190
  collection.per_page = 1
@@ -7,20 +7,6 @@ describe MagicGrid::Definition do
7
7
  shared_examples "a basic grid" do
8
8
  its(:options) { should == MagicGrid::Definition.runtime_defaults }
9
9
  its(:current_page) { should == 1 }
10
-
11
- descendings = [1, "1", :desc, :DESC, "desc", "DESC"]
12
- descendings.each do |down|
13
- it "should normalize #{down} to 1" do
14
- expect(subject.order(down)).to eq(1)
15
- end
16
- end
17
-
18
- ascendings = [0, "0", :asc, :ASC, "asc", "ASC"]
19
- ascendings.each do |up|
20
- it "should normalize #{up} to 0" do
21
- expect(subject.order(up)).to eq(0)
22
- end
23
- end
24
10
  end
25
11
 
26
12
  let (:empty_collection) { [] }
@@ -124,7 +110,7 @@ describe MagicGrid::Definition do
124
110
  data = [1,56,7,21,1]
125
111
  let(:controller) {
126
112
  controller = double()
127
- controller.stub(:params) { HashWithIndifferentAccess.new({:grid_order => 1}) }
113
+ controller.stub(:params) { HashWithIndifferentAccess.new({:grid_order => 1, :grid_col => 0}) }
128
114
  controller
129
115
  }
130
116
  let(:collection) { data }
data/spec/helpers_spec.rb CHANGED
@@ -67,6 +67,11 @@ describe MagicGrid::Helpers do
67
67
  it { should =~ /HOKY_POKY_ALAMO: 1/ }
68
68
  end
69
69
 
70
+ context "when a grid title is specified" do
71
+ subject { magic_grid([1,2], [:to_s], :title => "Awesome Sauces") }
72
+ it { should match_select("thead > tr > th", :text => "Awesome Sauces") }
73
+ end
74
+
70
75
  context "when given an array of Symbols as column list" do
71
76
  subject {
72
77
  magic_grid( [1,2], [:col1, :col2]) do |row|
@@ -98,20 +98,11 @@ describe MagicGrid::HtmlGrid do
98
98
 
99
99
  describe "column sorting helpers" do
100
100
  subject { MagicGrid::HtmlGrid.new nil, self }
101
- it "#reverse_order" do
102
- subject.reverse_order(0).should == 1
103
- subject.reverse_order(1).should == 0
104
- subject.reverse_order(2).should == 0
105
- end
106
101
  it "#order_icon" do
107
- subject.order_icon(0).should match_select('span.ui-icon-triangle-1-n')
108
- subject.order_icon(1).should match_select('span.ui-icon-triangle-1-s')
109
- subject.order_icon(2).should match_select('span.ui-icon-carat-2-n-s')
110
- end
111
- it "#order_class" do
112
- subject.order_class(0).should == 'sort-asc'
113
- subject.order_class(1).should == 'sort-desc'
114
- subject.order_class(2).should == 'sort-none'
102
+ order = double.tap do |fake|
103
+ fake.should_receive(:icon_class).and_return("CSS-IS-AWESOME")
104
+ end
105
+ subject.order_icon(order).should match_select('span.CSS-IS-AWESOME')
115
106
  end
116
107
  end
117
108
 
@@ -141,4 +132,19 @@ describe MagicGrid::HtmlGrid do
141
132
  grid.magic_pager(collection).should =~ /INSTALL WillPaginate or Kaminari/
142
133
  end
143
134
  end
135
+
136
+ describe '#sortable_header' do
137
+ let(:definition) { MagicGrid::Definition.new(column_list,
138
+ fake_active_record_collection,
139
+ nil, :default_order => :desc ) }
140
+ let(:grid) { MagicGrid::HtmlGrid.new(definition, self) }
141
+ it "should create an appropriate <th> for the first (default sort) column" do
142
+ output = grid.sortable_header(definition.columns.first)
143
+ output.should match_select('th.sort-current>a>span.ui-icon-triangle-1-s')
144
+ end
145
+ it "should create an appropriate <th> for a currently unsorted column" do
146
+ output = grid.sortable_header(definition.columns.second)
147
+ output.should match_select('th>a>span.ui-icon-carat-2-n-s')
148
+ end
149
+ end
144
150
  end
@@ -0,0 +1,30 @@
1
+ require 'spec_helper'
2
+ require 'magic_grid/order'
3
+
4
+ describe MagicGrid::Order do
5
+ describe '#from_param' do
6
+ it { MagicGrid::Order.from_param(0).should == MagicGrid::Order::Ascending }
7
+ it { MagicGrid::Order.from_param(1).should == MagicGrid::Order::Descending }
8
+ it { MagicGrid::Order.from_param(2).should == MagicGrid::Order::Ascending }
9
+ end
10
+ describe '#css_class' do
11
+ it { MagicGrid::Order::Unordered.css_class.should == 'sort-none' }
12
+ it { MagicGrid::Order::Ascending.css_class.should == 'sort-asc' }
13
+ it { MagicGrid::Order::Descending.css_class.should == 'sort-desc' }
14
+ end
15
+ describe '#icon_class' do
16
+ it { MagicGrid::Order::Unordered.icon_class.should == 'ui-icon-carat-2-n-s' }
17
+ it { MagicGrid::Order::Ascending.icon_class.should == 'ui-icon-triangle-1-n' }
18
+ it { MagicGrid::Order::Descending.icon_class.should == 'ui-icon-triangle-1-s' }
19
+ end
20
+ describe '#to_sql' do
21
+ it { MagicGrid::Order::Unordered.to_sql.should == 'ASC' }
22
+ it { MagicGrid::Order::Ascending.to_sql.should == 'ASC' }
23
+ it { MagicGrid::Order::Descending.to_sql.should == 'DESC' }
24
+ end
25
+ describe '#reverse' do
26
+ it { MagicGrid::Order::Unordered.reverse.should == MagicGrid::Order::Descending }
27
+ it { MagicGrid::Order::Ascending.reverse.should == MagicGrid::Order::Descending }
28
+ it { MagicGrid::Order::Descending.reverse.should == MagicGrid::Order::Ascending }
29
+ end
30
+ end
data/spec/spec_helper.rb CHANGED
@@ -43,7 +43,7 @@ end
43
43
  module ActionFaker
44
44
  attr_accessor :output_buffer
45
45
  def url_for(*args)
46
- "fake_url(#{args.inspect})"
46
+ "fake_url(#{args.inspect})".html_safe
47
47
  end
48
48
 
49
49
  def make_controller
metadata CHANGED
@@ -2,95 +2,79 @@
2
2
  name: magic_grid
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.12.4
5
+ version: 0.12.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ryan Graham
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-14 00:00:00.000000000 Z
12
+ date: 2013-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- version_requirements: !ruby/object:Gem::Requirement
16
- none: false
17
- requirements:
18
- - - ! '>='
19
- - !ruby/object:Gem::Version
20
- version: '3.1'
21
15
  prerelease: false
22
- name: rails
16
+ name: railties
17
+ type: :runtime
23
18
  requirement: !ruby/object:Gem::Requirement
24
- none: false
25
19
  requirements:
26
20
  - - ! '>='
27
21
  - !ruby/object:Gem::Version
28
22
  version: '3.1'
29
- type: :runtime
30
- - !ruby/object:Gem::Dependency
31
- version_requirements: !ruby/object:Gem::Requirement
32
23
  none: false
24
+ version_requirements: !ruby/object:Gem::Requirement
33
25
  requirements:
34
26
  - - ! '>='
35
27
  - !ruby/object:Gem::Version
36
- version: 1.0.17
28
+ version: '3.1'
29
+ none: false
30
+ - !ruby/object:Gem::Dependency
37
31
  prerelease: false
38
32
  name: jquery-rails
33
+ type: :runtime
39
34
  requirement: !ruby/object:Gem::Requirement
40
- none: false
41
35
  requirements:
42
36
  - - ! '>='
43
37
  - !ruby/object:Gem::Version
44
38
  version: 1.0.17
45
- type: :runtime
46
- - !ruby/object:Gem::Dependency
47
- version_requirements: !ruby/object:Gem::Requirement
48
39
  none: false
40
+ version_requirements: !ruby/object:Gem::Requirement
49
41
  requirements:
50
42
  - - ! '>='
51
43
  - !ruby/object:Gem::Version
52
- version: 0.9.2
44
+ version: 1.0.17
45
+ none: false
46
+ - !ruby/object:Gem::Dependency
53
47
  prerelease: false
54
48
  name: rake
49
+ type: :development
55
50
  requirement: !ruby/object:Gem::Requirement
56
- none: false
57
51
  requirements:
58
52
  - - ! '>='
59
53
  - !ruby/object:Gem::Version
60
54
  version: 0.9.2
61
- type: :development
62
- - !ruby/object:Gem::Dependency
63
- version_requirements: !ruby/object:Gem::Requirement
64
55
  none: false
56
+ version_requirements: !ruby/object:Gem::Requirement
65
57
  requirements:
66
- - - ~>
58
+ - - ! '>='
67
59
  - !ruby/object:Gem::Version
68
- version: 0.4.0
60
+ version: 0.9.2
61
+ none: false
62
+ - !ruby/object:Gem::Dependency
69
63
  prerelease: false
70
- name: tarantula
64
+ name: rspec
65
+ type: :development
71
66
  requirement: !ruby/object:Gem::Requirement
72
- none: false
73
67
  requirements:
74
68
  - - ~>
75
69
  - !ruby/object:Gem::Version
76
- version: 0.4.0
77
- type: :development
78
- - !ruby/object:Gem::Dependency
79
- version_requirements: !ruby/object:Gem::Requirement
70
+ version: 2.13.0
80
71
  none: false
72
+ version_requirements: !ruby/object:Gem::Requirement
81
73
  requirements:
82
74
  - - ~>
83
75
  - !ruby/object:Gem::Version
84
- version: 2.11.0
85
- prerelease: false
86
- name: rspec
87
- requirement: !ruby/object:Gem::Requirement
76
+ version: 2.13.0
88
77
  none: false
89
- requirements:
90
- - - ~>
91
- - !ruby/object:Gem::Version
92
- version: 2.11.0
93
- type: :development
94
78
  description: ! " Displays a collection (ActiveRelation or Array-like object) wrapped
95
79
  in an\n html table with server side column sorting, filtering hooks, and search\n
96
80
  \ bar. Large collections can be paginated with either the will_paginate gem\n
@@ -102,105 +86,107 @@ executables: []
102
86
  extensions: []
103
87
  extra_rdoc_files: []
104
88
  files:
105
- - lib/magic_grid.rb
106
89
  - lib/assets/javascripts/magic_grid.js
90
+ - lib/magic_grid.rb
107
91
  - lib/tasks/magic_grid_tasks.rake
108
- - lib/magic_grid/version.rb
109
- - lib/magic_grid/column.rb
110
92
  - lib/magic_grid/html_grid.rb
111
- - lib/magic_grid/helpers.rb
112
- - lib/magic_grid/collection.rb
113
- - lib/magic_grid/engine.rb
114
93
  - lib/magic_grid/logger.rb
94
+ - lib/magic_grid/engine.rb
95
+ - lib/magic_grid/column.rb
96
+ - lib/magic_grid/order.rb
97
+ - lib/magic_grid/collection.rb
98
+ - lib/magic_grid/helpers.rb
115
99
  - lib/magic_grid/definition.rb
100
+ - lib/magic_grid/version.rb
116
101
  - lib/locales/en.yml
117
102
  - MIT-LICENSE
118
103
  - Rakefile
119
104
  - README.md
120
- - spec/collection_spec.rb
121
- - spec/logger_spec.rb
122
- - spec/spec_helper.rb
123
105
  - spec/html_grid_spec.rb
124
- - spec/helpers_spec.rb
125
106
  - spec/column_spec.rb
126
107
  - spec/definition_spec.rb
127
- - test/magic_grid_test.rb
108
+ - spec/spec_helper.rb
109
+ - spec/collection_spec.rb
110
+ - spec/order_spec.rb
111
+ - spec/logger_spec.rb
112
+ - spec/helpers_spec.rb
128
113
  - test/test_helper.rb
129
- - test/dummy/public/500.html
114
+ - test/dummy/public/422.html
130
115
  - test/dummy/public/favicon.ico
131
- - test/dummy/public/css/smoothness/images/ui-icons_cd0a0a_256x240.png
132
- - test/dummy/public/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
133
- - test/dummy/public/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
134
- - test/dummy/public/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
135
- - test/dummy/public/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png
116
+ - test/dummy/public/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
136
117
  - test/dummy/public/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
118
+ - test/dummy/public/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
137
119
  - test/dummy/public/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
120
+ - test/dummy/public/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
121
+ - test/dummy/public/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png
122
+ - test/dummy/public/css/smoothness/images/ui-icons_222222_256x240.png
123
+ - test/dummy/public/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
138
124
  - test/dummy/public/css/smoothness/images/ui-icons_888888_256x240.png
139
- - test/dummy/public/css/smoothness/images/ui-icons_2e83ff_256x240.png
140
- - test/dummy/public/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
141
125
  - test/dummy/public/css/smoothness/images/ui-icons_454545_256x240.png
126
+ - test/dummy/public/css/smoothness/images/ui-icons_2e83ff_256x240.png
127
+ - test/dummy/public/css/smoothness/images/ui-icons_cd0a0a_256x240.png
142
128
  - test/dummy/public/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
143
- - test/dummy/public/css/smoothness/images/ui-icons_222222_256x240.png
144
129
  - test/dummy/public/css/smoothness/jquery-ui-1.8.18.custom.css
130
+ - test/dummy/public/500.html
145
131
  - test/dummy/public/404.html
146
- - test/dummy/public/422.html
147
- - test/dummy/app/models/post.rb
148
- - test/dummy/app/models/user.rb
149
- - test/dummy/app/helpers/users_helper.rb
150
- - test/dummy/app/helpers/posts_helper.rb
151
- - test/dummy/app/helpers/application_helper.rb
132
+ - test/dummy/script/rails
133
+ - test/dummy/config.ru
134
+ - test/dummy/Rakefile
135
+ - test/dummy/test/functional/posts_controller_test.rb
136
+ - test/dummy/test/functional/users_controller_test.rb
137
+ - test/dummy/test/unit/post_test.rb
138
+ - test/dummy/test/unit/user_test.rb
139
+ - test/dummy/test/unit/helpers/users_helper_test.rb
140
+ - test/dummy/test/unit/helpers/posts_helper_test.rb
141
+ - test/dummy/test/integration/spider_test.rb
142
+ - test/dummy/test/fixtures/posts.yml
143
+ - test/dummy/test/fixtures/users.yml
144
+ - test/dummy/db/migrate/20111025191809_create_users.rb
145
+ - test/dummy/db/migrate/20111025195229_create_posts.rb
146
+ - test/dummy/db/schema.rb
147
+ - test/dummy/config/application.rb
148
+ - test/dummy/config/initializers/secret_token.rb
149
+ - test/dummy/config/initializers/backtrace_silencers.rb
150
+ - test/dummy/config/initializers/wrap_parameters.rb
151
+ - test/dummy/config/initializers/session_store.rb
152
+ - test/dummy/config/initializers/inflections.rb
153
+ - test/dummy/config/initializers/mime_types.rb
154
+ - test/dummy/config/boot.rb
155
+ - test/dummy/config/environment.rb
156
+ - test/dummy/config/environments/development.rb
157
+ - test/dummy/config/environments/test.rb
158
+ - test/dummy/config/environments/production.rb
159
+ - test/dummy/config/routes.rb
160
+ - test/dummy/config/database.yml
161
+ - test/dummy/config/locales/en.yml
152
162
  - test/dummy/app/assets/javascripts/application.js
153
163
  - test/dummy/app/assets/javascripts/users.js
154
164
  - test/dummy/app/assets/javascripts/posts.js
155
- - test/dummy/app/assets/stylesheets/posts.css
165
+ - test/dummy/app/assets/stylesheets/application.css
156
166
  - test/dummy/app/assets/stylesheets/users.css
157
167
  - test/dummy/app/assets/stylesheets/scaffold.css
158
- - test/dummy/app/assets/stylesheets/application.css
168
+ - test/dummy/app/assets/stylesheets/posts.css
159
169
  - test/dummy/app/views/layouts/application.html.erb
170
+ - test/dummy/app/views/users/edit.html.erb
160
171
  - test/dummy/app/views/users/index.html.erb
161
172
  - test/dummy/app/views/users/show.html.erb
162
173
  - test/dummy/app/views/users/_form.html.erb
163
- - test/dummy/app/views/users/edit.html.erb
164
174
  - test/dummy/app/views/users/new.html.erb
165
- - test/dummy/app/views/posts/by_user.html.erb
175
+ - test/dummy/app/views/posts/edit.html.erb
166
176
  - test/dummy/app/views/posts/index.html.erb
167
177
  - test/dummy/app/views/posts/show.html.erb
178
+ - test/dummy/app/views/posts/by_user.html.erb
168
179
  - test/dummy/app/views/posts/_form.html.erb
169
- - test/dummy/app/views/posts/edit.html.erb
170
180
  - test/dummy/app/views/posts/new.html.erb
181
+ - test/dummy/app/models/user.rb
182
+ - test/dummy/app/models/post.rb
171
183
  - test/dummy/app/controllers/users_controller.rb
172
- - test/dummy/app/controllers/application_controller.rb
173
184
  - test/dummy/app/controllers/posts_controller.rb
174
- - test/dummy/test/unit/helpers/posts_helper_test.rb
175
- - test/dummy/test/unit/helpers/users_helper_test.rb
176
- - test/dummy/test/unit/post_test.rb
177
- - test/dummy/test/unit/user_test.rb
178
- - test/dummy/test/integration/spider_test.rb
179
- - test/dummy/test/fixtures/users.yml
180
- - test/dummy/test/fixtures/posts.yml
181
- - test/dummy/test/functional/posts_controller_test.rb
182
- - test/dummy/test/functional/users_controller_test.rb
183
- - test/dummy/db/migrate/20111025191809_create_users.rb
184
- - test/dummy/db/migrate/20111025195229_create_posts.rb
185
- - test/dummy/db/schema.rb
186
- - test/dummy/config.ru
187
- - test/dummy/script/rails
188
- - test/dummy/Rakefile
189
- - test/dummy/config/application.rb
190
- - test/dummy/config/database.yml
191
- - test/dummy/config/routes.rb
192
- - test/dummy/config/boot.rb
193
- - test/dummy/config/environments/development.rb
194
- - test/dummy/config/environments/production.rb
195
- - test/dummy/config/environments/test.rb
196
- - test/dummy/config/locales/en.yml
197
- - test/dummy/config/initializers/wrap_parameters.rb
198
- - test/dummy/config/initializers/session_store.rb
199
- - test/dummy/config/initializers/inflections.rb
200
- - test/dummy/config/initializers/secret_token.rb
201
- - test/dummy/config/initializers/backtrace_silencers.rb
202
- - test/dummy/config/initializers/mime_types.rb
203
- - test/dummy/config/environment.rb
185
+ - test/dummy/app/controllers/application_controller.rb
186
+ - test/dummy/app/helpers/users_helper.rb
187
+ - test/dummy/app/helpers/posts_helper.rb
188
+ - test/dummy/app/helpers/application_helper.rb
189
+ - test/magic_grid_test.rb
204
190
  homepage: https://github.com/rmg/magic_grid
205
191
  licenses: []
206
192
  post_install_message:
@@ -208,112 +194,113 @@ rdoc_options: []
208
194
  require_paths:
209
195
  - lib
210
196
  required_ruby_version: !ruby/object:Gem::Requirement
211
- none: false
212
197
  requirements:
213
198
  - - ! '>='
214
199
  - !ruby/object:Gem::Version
215
200
  segments:
216
201
  - 0
217
- hash: -4357182830719738575
202
+ hash: -1526961715070354310
218
203
  version: '0'
219
- required_rubygems_version: !ruby/object:Gem::Requirement
220
204
  none: false
205
+ required_rubygems_version: !ruby/object:Gem::Requirement
221
206
  requirements:
222
207
  - - ! '>='
223
208
  - !ruby/object:Gem::Version
224
209
  segments:
225
210
  - 0
226
- hash: -4357182830719738575
211
+ hash: -1526961715070354310
227
212
  version: '0'
213
+ none: false
228
214
  requirements: []
229
215
  rubyforge_project:
230
- rubygems_version: 1.8.23
216
+ rubygems_version: 1.8.25
231
217
  signing_key:
232
218
  specification_version: 3
233
219
  summary: Easy collection display grid with column sorting and pagination
234
220
  test_files:
235
- - spec/collection_spec.rb
236
- - spec/logger_spec.rb
237
- - spec/spec_helper.rb
238
221
  - spec/html_grid_spec.rb
239
- - spec/helpers_spec.rb
240
222
  - spec/column_spec.rb
241
223
  - spec/definition_spec.rb
242
- - test/magic_grid_test.rb
224
+ - spec/spec_helper.rb
225
+ - spec/collection_spec.rb
226
+ - spec/order_spec.rb
227
+ - spec/logger_spec.rb
228
+ - spec/helpers_spec.rb
243
229
  - test/test_helper.rb
244
- - test/dummy/public/500.html
230
+ - test/dummy/public/422.html
245
231
  - test/dummy/public/favicon.ico
246
- - test/dummy/public/css/smoothness/images/ui-icons_cd0a0a_256x240.png
247
- - test/dummy/public/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
248
- - test/dummy/public/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
249
- - test/dummy/public/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
250
- - test/dummy/public/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png
232
+ - test/dummy/public/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
251
233
  - test/dummy/public/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
234
+ - test/dummy/public/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
252
235
  - test/dummy/public/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
236
+ - test/dummy/public/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
237
+ - test/dummy/public/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png
238
+ - test/dummy/public/css/smoothness/images/ui-icons_222222_256x240.png
239
+ - test/dummy/public/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
253
240
  - test/dummy/public/css/smoothness/images/ui-icons_888888_256x240.png
254
- - test/dummy/public/css/smoothness/images/ui-icons_2e83ff_256x240.png
255
- - test/dummy/public/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
256
241
  - test/dummy/public/css/smoothness/images/ui-icons_454545_256x240.png
242
+ - test/dummy/public/css/smoothness/images/ui-icons_2e83ff_256x240.png
243
+ - test/dummy/public/css/smoothness/images/ui-icons_cd0a0a_256x240.png
257
244
  - test/dummy/public/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
258
- - test/dummy/public/css/smoothness/images/ui-icons_222222_256x240.png
259
245
  - test/dummy/public/css/smoothness/jquery-ui-1.8.18.custom.css
246
+ - test/dummy/public/500.html
260
247
  - test/dummy/public/404.html
261
- - test/dummy/public/422.html
262
- - test/dummy/app/models/post.rb
263
- - test/dummy/app/models/user.rb
264
- - test/dummy/app/helpers/users_helper.rb
265
- - test/dummy/app/helpers/posts_helper.rb
266
- - test/dummy/app/helpers/application_helper.rb
248
+ - test/dummy/script/rails
249
+ - test/dummy/config.ru
250
+ - test/dummy/Rakefile
251
+ - test/dummy/test/functional/posts_controller_test.rb
252
+ - test/dummy/test/functional/users_controller_test.rb
253
+ - test/dummy/test/unit/post_test.rb
254
+ - test/dummy/test/unit/user_test.rb
255
+ - test/dummy/test/unit/helpers/users_helper_test.rb
256
+ - test/dummy/test/unit/helpers/posts_helper_test.rb
257
+ - test/dummy/test/integration/spider_test.rb
258
+ - test/dummy/test/fixtures/posts.yml
259
+ - test/dummy/test/fixtures/users.yml
260
+ - test/dummy/db/migrate/20111025191809_create_users.rb
261
+ - test/dummy/db/migrate/20111025195229_create_posts.rb
262
+ - test/dummy/db/schema.rb
263
+ - test/dummy/config/application.rb
264
+ - test/dummy/config/initializers/secret_token.rb
265
+ - test/dummy/config/initializers/backtrace_silencers.rb
266
+ - test/dummy/config/initializers/wrap_parameters.rb
267
+ - test/dummy/config/initializers/session_store.rb
268
+ - test/dummy/config/initializers/inflections.rb
269
+ - test/dummy/config/initializers/mime_types.rb
270
+ - test/dummy/config/boot.rb
271
+ - test/dummy/config/environment.rb
272
+ - test/dummy/config/environments/development.rb
273
+ - test/dummy/config/environments/test.rb
274
+ - test/dummy/config/environments/production.rb
275
+ - test/dummy/config/routes.rb
276
+ - test/dummy/config/database.yml
277
+ - test/dummy/config/locales/en.yml
267
278
  - test/dummy/app/assets/javascripts/application.js
268
279
  - test/dummy/app/assets/javascripts/users.js
269
280
  - test/dummy/app/assets/javascripts/posts.js
270
- - test/dummy/app/assets/stylesheets/posts.css
281
+ - test/dummy/app/assets/stylesheets/application.css
271
282
  - test/dummy/app/assets/stylesheets/users.css
272
283
  - test/dummy/app/assets/stylesheets/scaffold.css
273
- - test/dummy/app/assets/stylesheets/application.css
284
+ - test/dummy/app/assets/stylesheets/posts.css
274
285
  - test/dummy/app/views/layouts/application.html.erb
286
+ - test/dummy/app/views/users/edit.html.erb
275
287
  - test/dummy/app/views/users/index.html.erb
276
288
  - test/dummy/app/views/users/show.html.erb
277
289
  - test/dummy/app/views/users/_form.html.erb
278
- - test/dummy/app/views/users/edit.html.erb
279
290
  - test/dummy/app/views/users/new.html.erb
280
- - test/dummy/app/views/posts/by_user.html.erb
291
+ - test/dummy/app/views/posts/edit.html.erb
281
292
  - test/dummy/app/views/posts/index.html.erb
282
293
  - test/dummy/app/views/posts/show.html.erb
294
+ - test/dummy/app/views/posts/by_user.html.erb
283
295
  - test/dummy/app/views/posts/_form.html.erb
284
- - test/dummy/app/views/posts/edit.html.erb
285
296
  - test/dummy/app/views/posts/new.html.erb
297
+ - test/dummy/app/models/user.rb
298
+ - test/dummy/app/models/post.rb
286
299
  - test/dummy/app/controllers/users_controller.rb
287
- - test/dummy/app/controllers/application_controller.rb
288
300
  - test/dummy/app/controllers/posts_controller.rb
289
- - test/dummy/test/unit/helpers/posts_helper_test.rb
290
- - test/dummy/test/unit/helpers/users_helper_test.rb
291
- - test/dummy/test/unit/post_test.rb
292
- - test/dummy/test/unit/user_test.rb
293
- - test/dummy/test/integration/spider_test.rb
294
- - test/dummy/test/fixtures/users.yml
295
- - test/dummy/test/fixtures/posts.yml
296
- - test/dummy/test/functional/posts_controller_test.rb
297
- - test/dummy/test/functional/users_controller_test.rb
298
- - test/dummy/db/migrate/20111025191809_create_users.rb
299
- - test/dummy/db/migrate/20111025195229_create_posts.rb
300
- - test/dummy/db/schema.rb
301
- - test/dummy/config.ru
302
- - test/dummy/script/rails
303
- - test/dummy/Rakefile
304
- - test/dummy/config/application.rb
305
- - test/dummy/config/database.yml
306
- - test/dummy/config/routes.rb
307
- - test/dummy/config/boot.rb
308
- - test/dummy/config/environments/development.rb
309
- - test/dummy/config/environments/production.rb
310
- - test/dummy/config/environments/test.rb
311
- - test/dummy/config/locales/en.yml
312
- - test/dummy/config/initializers/wrap_parameters.rb
313
- - test/dummy/config/initializers/session_store.rb
314
- - test/dummy/config/initializers/inflections.rb
315
- - test/dummy/config/initializers/secret_token.rb
316
- - test/dummy/config/initializers/backtrace_silencers.rb
317
- - test/dummy/config/initializers/mime_types.rb
318
- - test/dummy/config/environment.rb
301
+ - test/dummy/app/controllers/application_controller.rb
302
+ - test/dummy/app/helpers/users_helper.rb
303
+ - test/dummy/app/helpers/posts_helper.rb
304
+ - test/dummy/app/helpers/application_helper.rb
305
+ - test/magic_grid_test.rb
319
306
  has_rdoc: yard