openstax_utilities 3.0.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +8 -8
  2. data/Rakefile +4 -3
  3. data/app/handlers/openstax/utilities/abstract_keyword_search_handler.rb +92 -0
  4. data/app/routines/openstax/utilities/abstract_keyword_search_routine.rb +149 -0
  5. data/lib/openstax/utilities/delegate_access_control.rb +5 -0
  6. data/lib/openstax/utilities/engine.rb +4 -8
  7. data/lib/openstax/utilities/helpers/datetime.rb +4 -4
  8. data/{app/helpers → lib}/openstax/utilities/osu_helper.rb +9 -1
  9. data/lib/openstax/utilities/version.rb +1 -1
  10. data/lib/openstax_utilities.rb +1 -7
  11. data/spec/dummy/README.md +1 -1
  12. data/spec/dummy/Rakefile +1 -2
  13. data/spec/dummy/app/assets/javascripts/application.js +3 -5
  14. data/spec/dummy/app/assets/stylesheets/application.css +5 -3
  15. data/spec/dummy/app/controllers/application_controller.rb +3 -3
  16. data/spec/dummy/app/handlers/users_search.rb +11 -0
  17. data/spec/dummy/app/routines/search_users.rb +22 -0
  18. data/spec/dummy/app/views/layouts/application.html.erb +2 -2
  19. data/spec/dummy/bin/bundle +3 -0
  20. data/spec/dummy/bin/rails +4 -0
  21. data/spec/dummy/bin/rake +4 -0
  22. data/spec/dummy/config.ru +1 -1
  23. data/spec/dummy/config/application.rb +1 -37
  24. data/spec/dummy/config/boot.rb +4 -9
  25. data/spec/dummy/config/database.yml +8 -8
  26. data/spec/dummy/config/environment.rb +3 -3
  27. data/spec/dummy/config/environments/development.rb +19 -19
  28. data/spec/dummy/config/environments/production.rb +41 -30
  29. data/spec/dummy/config/environments/test.rb +17 -15
  30. data/spec/dummy/config/initializers/assets.rb +8 -0
  31. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  32. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  33. data/spec/dummy/config/initializers/inflections.rb +6 -5
  34. data/spec/dummy/config/initializers/mime_types.rb +0 -1
  35. data/spec/dummy/config/initializers/session_store.rb +1 -6
  36. data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
  37. data/spec/dummy/config/locales/en.yml +20 -2
  38. data/spec/dummy/config/routes.rb +0 -3
  39. data/spec/dummy/config/secrets.yml +22 -0
  40. data/spec/dummy/db/migrate/0_create_users.rb +8 -2
  41. data/spec/dummy/db/schema.rb +13 -7
  42. data/spec/dummy/public/404.html +54 -13
  43. data/spec/dummy/public/422.html +54 -13
  44. data/spec/dummy/public/500.html +53 -12
  45. data/spec/factories/user.rb +8 -0
  46. data/spec/handlers/openstax/utilities/abstract_keyword_search_handler_spec.rb +93 -0
  47. data/spec/lib/openstax/utilities/access_policy_spec.rb +2 -2
  48. data/spec/rails_helper.rb +54 -0
  49. data/spec/routines/openstax/utilities/abstract_keyword_search_routine_spec.rb +114 -0
  50. data/spec/spec_helper.rb +80 -11
  51. metadata +102 -24
  52. data/app/assets/javascripts/openstax_utilities.js +0 -0
  53. data/app/assets/stylesheets/openstax_utilities.css +0 -4
  54. data/spec/dummy/app/assets/stylesheets/scaffold.css +0 -56
  55. data/spec/dummy/app/controllers/users_controller.rb +0 -87
  56. data/spec/dummy/app/views/users/_form.html.erb +0 -17
  57. data/spec/dummy/app/views/users/edit.html.erb +0 -6
  58. data/spec/dummy/app/views/users/index.html.erb +0 -21
  59. data/spec/dummy/app/views/users/new.html.erb +0 -5
  60. data/spec/dummy/app/views/users/show.html.erb +0 -5
  61. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  62. data/spec/dummy/script/rails +0 -6
@@ -1,11 +1,11 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  module OpenStax
4
4
  module Utilities
5
5
 
6
6
  describe AccessPolicy do
7
7
 
8
- let!(:user) { User.create }
8
+ let!(:user) { FactoryGirl.create :user }
9
9
 
10
10
  it 'responds to any _allowed? calls' do
11
11
  AccessPolicy.register(User, DummyAccessPolicy)
@@ -0,0 +1,54 @@
1
+ ENV["RAILS_ENV"] ||= 'test'
2
+
3
+ require 'spec_helper'
4
+ require File.expand_path("../dummy/config/environment", __FILE__)
5
+ require 'rspec/rails'
6
+ require 'factory_girl_rails'
7
+ require 'faker'
8
+ require 'squeel'
9
+
10
+ # Add additional requires below this line. Rails is not loaded until this point!
11
+
12
+ # Requires supporting ruby files with custom matchers and macros, etc, in
13
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
14
+ # run as spec files by default. This means that files in spec/support that end
15
+ # in _spec.rb will both be required and run as specs, causing the specs to be
16
+ # run twice. It is recommended that you do not name files matching this glob to
17
+ # end with _spec.rb. You can configure this pattern with the --pattern
18
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
19
+ #
20
+ # The following line is provided for convenience purposes. It has the downside
21
+ # of increasing the boot-up time by auto-requiring all files in the support
22
+ # directory. Alternatively, in the individual `*_spec.rb` files, manually
23
+ # require only the support files necessary.
24
+ #
25
+ # Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
26
+
27
+ # Checks for pending migrations before tests are run.
28
+ # If you are not using ActiveRecord, you can remove this line.
29
+ ActiveRecord::Migration.maintain_test_schema!
30
+
31
+ RSpec.configure do |config|
32
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
33
+ # config.fixture_path = "#{::Rails.root}/spec/fixtures"
34
+
35
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
36
+ # examples within a transaction, remove the following line or assign false
37
+ # instead of true.
38
+ # config.use_transactional_fixtures = true
39
+
40
+ # RSpec Rails can automatically mix in different behaviours to your tests
41
+ # based on their file location, for example enabling you to call `get` and
42
+ # `post` in specs under `spec/controllers`.
43
+ #
44
+ # You can disable this behaviour by removing the line below, and instead
45
+ # explicitly tag your specs with their type, e.g.:
46
+ #
47
+ # RSpec.describe UsersController, :type => :controller do
48
+ # # ...
49
+ # end
50
+ #
51
+ # The different available types are documented in the features, such as in
52
+ # https://relishapp.com/rspec/rspec-rails/docs
53
+ config.infer_spec_type_from_file_location!
54
+ end
@@ -0,0 +1,114 @@
1
+ require 'rails_helper'
2
+
3
+ module OpenStax
4
+ module Utilities
5
+ describe AbstractKeywordSearchRoutine do
6
+
7
+ let!(:john_doe) { FactoryGirl.create :user, name: "John Doe",
8
+ username: "doejohn",
9
+ email: "john@doe.com" }
10
+
11
+ let!(:jane_doe) { FactoryGirl.create :user, name: "Jane Doe",
12
+ username: "doejane",
13
+ email: "jane@doe.com" }
14
+
15
+ let!(:jack_doe) { FactoryGirl.create :user, name: "Jack Doe",
16
+ username: "doejack",
17
+ email: "jack@doe.com" }
18
+
19
+ before(:each) do
20
+ 100.times do
21
+ FactoryGirl.create(:user)
22
+ end
23
+ end
24
+
25
+ it "filters results based on one field" do
26
+ items = SearchUsers.call('last_name:dOe').outputs[:items]
27
+
28
+ expect(items).to include(john_doe)
29
+ expect(items).to include(jane_doe)
30
+ expect(items).to include(jack_doe)
31
+ items.each do |item|
32
+ expect(item.name.downcase).to match(/\A[\w]* doe[\w]*\z/i)
33
+ end
34
+ end
35
+
36
+ it "filters results based on multiple fields" do
37
+ items = SearchUsers.call('first_name:jOhN last_name:DoE').outputs[:items]
38
+
39
+ expect(items).to include(john_doe)
40
+ expect(items).not_to include(jane_doe)
41
+ expect(items).not_to include(jack_doe)
42
+ items.each do |item|
43
+ expect(item.name).to match(/\Ajohn[\w]* doe[\w]*\z/i)
44
+ end
45
+ end
46
+
47
+ it "filters results based on multiple keywords per field" do
48
+ items = SearchUsers.call('first_name:JoHn,JaNe last_name:dOe').outputs[:items]
49
+
50
+ expect(items).to include(john_doe)
51
+ expect(items).to include(jane_doe)
52
+ expect(items).not_to include(jack_doe)
53
+ items.each do |item|
54
+ expect(item.name).to match(/\A[john|jane][\w]* doe[\w]*\z/i)
55
+ end
56
+ end
57
+
58
+ it "orders results by multiple fields in different directions" do
59
+ items = SearchUsers.call('username:DoE', order_by: 'cReAtEd_At AsC, iD')
60
+ .outputs[:items]
61
+ expect(items).to include(john_doe)
62
+ expect(items).to include(jane_doe)
63
+ expect(items).to include(jack_doe)
64
+ john_index = items.index(john_doe)
65
+ jane_index = items.index(jane_doe)
66
+ jack_index = items.index(jack_doe)
67
+ expect(jane_index).to be > john_index
68
+ expect(jack_index).to be > jane_index
69
+ items.each do |item|
70
+ expect(item.username).to match(/\Adoe[\w]*\z/i)
71
+ end
72
+
73
+ items = SearchUsers.call('username:dOe', order_by: 'CrEaTeD_aT dEsC, Id DeSc')
74
+ .outputs[:items]
75
+ expect(items).to include(john_doe)
76
+ expect(items).to include(jane_doe)
77
+ expect(items).to include(jack_doe)
78
+ john_index = items.index(john_doe)
79
+ jane_index = items.index(jane_doe)
80
+ jack_index = items.index(jack_doe)
81
+ expect(jane_index).to be < john_index
82
+ expect(jack_index).to be < jane_index
83
+ items.each do |item|
84
+ expect(item.username).to match(/\Adoe[\w]*\z/i)
85
+ end
86
+ end
87
+
88
+ it "paginates results" do
89
+ all_items = SearchUsers.call('').outputs[:items].to_a
90
+
91
+ items = SearchUsers.call('', per_page: 20).outputs[:items]
92
+ expect(items.limit(nil).offset(nil).count).to eq all_items.count
93
+ expect(items.limit(nil).offset(nil).to_a).to eq all_items
94
+ expect(items.count).to eq 20
95
+ expect(items.to_a).to eq all_items[0..19]
96
+
97
+ for page in 1..5
98
+ items = SearchUsers.call('', page: page, per_page: 20).outputs[:items]
99
+ expect(items.limit(nil).offset(nil).count).to eq all_items.count
100
+ expect(items.limit(nil).offset(nil).to_a).to eq all_items
101
+ expect(items.count).to eq 20
102
+ expect(items.to_a).to eq all_items.slice(20*(page-1), 20)
103
+ end
104
+
105
+ items = SearchUsers.call('', page: 1000, per_page: 20).outputs[:items]
106
+ expect(items.limit(nil).offset(nil).count).to eq all_items.count
107
+ expect(items.limit(nil).offset(nil).to_a).to eq all_items
108
+ expect(items.count).to eq 0
109
+ expect(items.to_a).to be_empty
110
+ end
111
+
112
+ end
113
+ end
114
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,16 +1,85 @@
1
- ENV['RAILS_ENV'] ||= 'test'
1
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause this
4
+ # file to always be loaded, without a need to explicitly require it in any files.
5
+ #
6
+ # Given that it is always loaded, you are encouraged to keep this file as
7
+ # light-weight as possible. Requiring heavyweight dependencies from this file
8
+ # will add to the boot time of your test suite on EVERY test run, even for an
9
+ # individual file that may not need all of that loaded. Instead, consider making
10
+ # a separate helper file that requires the additional dependencies and performs
11
+ # the additional setup, and require it from the spec files that actually need it.
12
+ #
13
+ # The `.rspec` file also contains a few flags that are not defaults but that
14
+ # users commonly want.
15
+ #
16
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
+ RSpec.configure do |config|
18
+ # rspec-expectations config goes here. You can use an alternate
19
+ # assertion/expectation library such as wrong or the stdlib/minitest
20
+ # assertions if you prefer.
21
+ config.expect_with :rspec do |expectations|
22
+ # This option will default to `true` in RSpec 4. It makes the `description`
23
+ # and `failure_message` of custom matchers include text for helper methods
24
+ # defined using `chain`, e.g.:
25
+ # be_bigger_than(2).and_smaller_than(4).description
26
+ # # => "be bigger than 2 and smaller than 4"
27
+ # ...rather than:
28
+ # # => "be bigger than 2"
29
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
30
+ end
2
31
 
3
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
- require 'rspec/rails'
32
+ # rspec-mocks config goes here. You can use an alternate test double
33
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
34
+ config.mock_with :rspec do |mocks|
35
+ # Prevents you from mocking or stubbing a method that does not exist on
36
+ # a real object. This is generally recommended, and will default to
37
+ # `true` in RSpec 4.
38
+ mocks.verify_partial_doubles = true
39
+ end
5
40
 
6
- Rails.backtrace_cleaner.remove_silencers!
41
+ # The settings below are suggested to provide a good initial experience
42
+ # with RSpec, but feel free to customize to your heart's content.
43
+ =begin
44
+ # These two settings work together to allow you to limit a spec run
45
+ # to individual examples or groups you care about by tagging them with
46
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
47
+ # get run.
48
+ config.filter_run :focus
49
+ config.run_all_when_everything_filtered = true
7
50
 
8
- # Load support files
9
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
51
+ # Limits the available syntax to the non-monkey patched syntax that is recommended.
52
+ # For more details, see:
53
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
54
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
55
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
56
+ config.disable_monkey_patching!
10
57
 
11
- RSpec.configure do |config|
12
- config.mock_with :rspec
13
- config.use_transactional_fixtures = true
14
- config.infer_base_class_for_anonymous_controllers = false
15
- config.order = "random"
58
+ # Many RSpec users commonly either run the entire suite or an individual
59
+ # file, and it's useful to allow more verbose output when running an
60
+ # individual spec file.
61
+ if config.files_to_run.one?
62
+ # Use the documentation formatter for detailed output,
63
+ # unless a formatter has already been configured
64
+ # (e.g. via a command-line flag).
65
+ config.default_formatter = 'doc'
66
+ end
67
+
68
+ # Print the 10 slowest examples and example groups at the
69
+ # end of the spec run, to help surface which specs are running
70
+ # particularly slow.
71
+ config.profile_examples = 10
72
+
73
+ # Run specs in random order to surface order dependencies. If you find an
74
+ # order dependency and want to debug it, you can fix the order by providing
75
+ # the seed, which is printed after each run.
76
+ # --seed 1234
77
+ config.order = :random
78
+
79
+ # Seed global randomization in this process using the `--seed` CLI option.
80
+ # Setting this allows you to use `--seed` to deterministically reproduce
81
+ # test failures related to randomization by passing the same `--seed` value
82
+ # as the one that triggered the failure.
83
+ Kernel.srand config.seed
84
+ =end
16
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_utilities
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-08 00:00:00.000000000 Z
11
+ date: 2014-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -24,6 +24,34 @@ dependencies:
24
24
  - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: lev
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: keyword_search
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: sqlite3
29
57
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +80,49 @@ dependencies:
52
80
  - - ! '>='
53
81
  - !ruby/object:Gem::Version
54
82
  version: '0'
55
- description: Utilities for OpenStax web sites
83
+ - !ruby/object:Gem::Dependency
84
+ name: factory_girl_rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: faker
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: squeel
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: Shared utilities for OpenStax web sites
56
126
  email:
57
127
  - jps@kindlinglabs.com
58
128
  executables: []
@@ -62,9 +132,8 @@ files:
62
132
  - MIT-LICENSE
63
133
  - README.md
64
134
  - Rakefile
65
- - app/assets/javascripts/openstax_utilities.js
66
- - app/assets/stylesheets/openstax_utilities.css
67
- - app/helpers/openstax/utilities/osu_helper.rb
135
+ - app/handlers/openstax/utilities/abstract_keyword_search_handler.rb
136
+ - app/routines/openstax/utilities/abstract_keyword_search_routine.rb
68
137
  - app/views/osu/shared/_action_list.html.erb
69
138
  - lib/openstax/utilities/access.rb
70
139
  - lib/openstax/utilities/access_policy.rb
@@ -81,6 +150,7 @@ files:
81
150
  - lib/openstax/utilities/helpers/misc.rb
82
151
  - lib/openstax/utilities/helpers/partials.rb
83
152
  - lib/openstax/utilities/network.rb
153
+ - lib/openstax/utilities/osu_helper.rb
84
154
  - lib/openstax/utilities/ruby.rb
85
155
  - lib/openstax/utilities/settings.rb
86
156
  - lib/openstax/utilities/text.rb
@@ -91,17 +161,15 @@ files:
91
161
  - spec/dummy/app/access_policies/dummy_access_policy.rb
92
162
  - spec/dummy/app/assets/javascripts/application.js
93
163
  - spec/dummy/app/assets/stylesheets/application.css
94
- - spec/dummy/app/assets/stylesheets/scaffold.css
95
164
  - spec/dummy/app/controllers/application_controller.rb
96
- - spec/dummy/app/controllers/users_controller.rb
165
+ - spec/dummy/app/handlers/users_search.rb
97
166
  - spec/dummy/app/helpers/application_helper.rb
98
167
  - spec/dummy/app/models/user.rb
168
+ - spec/dummy/app/routines/search_users.rb
99
169
  - spec/dummy/app/views/layouts/application.html.erb
100
- - spec/dummy/app/views/users/_form.html.erb
101
- - spec/dummy/app/views/users/edit.html.erb
102
- - spec/dummy/app/views/users/index.html.erb
103
- - spec/dummy/app/views/users/new.html.erb
104
- - spec/dummy/app/views/users/show.html.erb
170
+ - spec/dummy/bin/bundle
171
+ - spec/dummy/bin/rails
172
+ - spec/dummy/bin/rake
105
173
  - spec/dummy/config.ru
106
174
  - spec/dummy/config/application.rb
107
175
  - spec/dummy/config/boot.rb
@@ -110,22 +178,28 @@ files:
110
178
  - spec/dummy/config/environments/development.rb
111
179
  - spec/dummy/config/environments/production.rb
112
180
  - spec/dummy/config/environments/test.rb
181
+ - spec/dummy/config/initializers/assets.rb
113
182
  - spec/dummy/config/initializers/backtrace_silencers.rb
183
+ - spec/dummy/config/initializers/cookies_serializer.rb
184
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
114
185
  - spec/dummy/config/initializers/inflections.rb
115
186
  - spec/dummy/config/initializers/mime_types.rb
116
- - spec/dummy/config/initializers/secret_token.rb
117
187
  - spec/dummy/config/initializers/session_store.rb
118
188
  - spec/dummy/config/initializers/wrap_parameters.rb
119
189
  - spec/dummy/config/locales/en.yml
120
190
  - spec/dummy/config/routes.rb
191
+ - spec/dummy/config/secrets.yml
121
192
  - spec/dummy/db/migrate/0_create_users.rb
122
193
  - spec/dummy/db/schema.rb
123
194
  - spec/dummy/public/404.html
124
195
  - spec/dummy/public/422.html
125
196
  - spec/dummy/public/500.html
126
197
  - spec/dummy/public/favicon.ico
127
- - spec/dummy/script/rails
198
+ - spec/factories/user.rb
199
+ - spec/handlers/openstax/utilities/abstract_keyword_search_handler_spec.rb
128
200
  - spec/lib/openstax/utilities/access_policy_spec.rb
201
+ - spec/rails_helper.rb
202
+ - spec/routines/openstax/utilities/abstract_keyword_search_routine_spec.rb
129
203
  - spec/spec_helper.rb
130
204
  homepage: http://github.com/openstax/openstax_utilities
131
205
  licenses:
@@ -155,17 +229,15 @@ test_files:
155
229
  - spec/dummy/app/access_policies/dummy_access_policy.rb
156
230
  - spec/dummy/app/assets/javascripts/application.js
157
231
  - spec/dummy/app/assets/stylesheets/application.css
158
- - spec/dummy/app/assets/stylesheets/scaffold.css
159
232
  - spec/dummy/app/controllers/application_controller.rb
160
- - spec/dummy/app/controllers/users_controller.rb
233
+ - spec/dummy/app/handlers/users_search.rb
161
234
  - spec/dummy/app/helpers/application_helper.rb
162
235
  - spec/dummy/app/models/user.rb
236
+ - spec/dummy/app/routines/search_users.rb
163
237
  - spec/dummy/app/views/layouts/application.html.erb
164
- - spec/dummy/app/views/users/_form.html.erb
165
- - spec/dummy/app/views/users/edit.html.erb
166
- - spec/dummy/app/views/users/index.html.erb
167
- - spec/dummy/app/views/users/new.html.erb
168
- - spec/dummy/app/views/users/show.html.erb
238
+ - spec/dummy/bin/bundle
239
+ - spec/dummy/bin/rails
240
+ - spec/dummy/bin/rake
169
241
  - spec/dummy/config/application.rb
170
242
  - spec/dummy/config/boot.rb
171
243
  - spec/dummy/config/database.yml
@@ -173,14 +245,17 @@ test_files:
173
245
  - spec/dummy/config/environments/development.rb
174
246
  - spec/dummy/config/environments/production.rb
175
247
  - spec/dummy/config/environments/test.rb
248
+ - spec/dummy/config/initializers/assets.rb
176
249
  - spec/dummy/config/initializers/backtrace_silencers.rb
250
+ - spec/dummy/config/initializers/cookies_serializer.rb
251
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
177
252
  - spec/dummy/config/initializers/inflections.rb
178
253
  - spec/dummy/config/initializers/mime_types.rb
179
- - spec/dummy/config/initializers/secret_token.rb
180
254
  - spec/dummy/config/initializers/session_store.rb
181
255
  - spec/dummy/config/initializers/wrap_parameters.rb
182
256
  - spec/dummy/config/locales/en.yml
183
257
  - spec/dummy/config/routes.rb
258
+ - spec/dummy/config/secrets.yml
184
259
  - spec/dummy/config.ru
185
260
  - spec/dummy/db/migrate/0_create_users.rb
186
261
  - spec/dummy/db/schema.rb
@@ -190,6 +265,9 @@ test_files:
190
265
  - spec/dummy/public/favicon.ico
191
266
  - spec/dummy/Rakefile
192
267
  - spec/dummy/README.md
193
- - spec/dummy/script/rails
268
+ - spec/factories/user.rb
269
+ - spec/handlers/openstax/utilities/abstract_keyword_search_handler_spec.rb
194
270
  - spec/lib/openstax/utilities/access_policy_spec.rb
271
+ - spec/rails_helper.rb
272
+ - spec/routines/openstax/utilities/abstract_keyword_search_routine_spec.rb
195
273
  - spec/spec_helper.rb