orcid 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +10 -0
  3. data/.hound.yml +793 -0
  4. data/.travis.yml +14 -0
  5. data/Gemfile +14 -0
  6. data/README.md +107 -6
  7. data/Rakefile +17 -9
  8. data/app/assets/images/orcid/.keep +0 -0
  9. data/app/controllers/orcid/application_controller.rb +13 -4
  10. data/app/controllers/orcid/profile_connections_controller.rb +34 -6
  11. data/app/controllers/orcid/profile_requests_controller.rb +18 -15
  12. data/app/models/orcid/profile.rb +15 -5
  13. data/app/models/orcid/profile_connection.rb +20 -20
  14. data/app/models/orcid/profile_request.rb +39 -20
  15. data/app/models/orcid/work.rb +45 -55
  16. data/app/models/orcid/work/xml_parser.rb +45 -0
  17. data/app/models/orcid/work/xml_renderer.rb +29 -0
  18. data/app/services/orcid/remote/profile_creation_service.rb +40 -32
  19. data/app/services/orcid/remote/profile_query_service.rb +82 -0
  20. data/app/services/orcid/remote/profile_query_service/query_parameter_builder.rb +43 -0
  21. data/app/services/orcid/remote/profile_query_service/search_response.rb +31 -0
  22. data/app/services/orcid/remote/service.rb +16 -13
  23. data/app/services/orcid/remote/work_service.rb +58 -43
  24. data/app/templates/orcid/work.template.v1.1.xml.erb +32 -1
  25. data/app/views/orcid/profile_connections/_orcid_connector.html.erb +14 -0
  26. data/app/views/orcid/profile_connections/new.html.erb +4 -4
  27. data/bin/rails +8 -0
  28. data/config/{application.yml → application.yml.example} +3 -13
  29. data/config/locales/orcid.en.yml +5 -1
  30. data/config/routes.rb +4 -2
  31. data/lib/generators/orcid/install/install_generator.rb +46 -7
  32. data/lib/orcid.rb +23 -11
  33. data/lib/orcid/configuration.rb +32 -13
  34. data/lib/orcid/configuration/provider.rb +27 -13
  35. data/lib/orcid/engine.rb +20 -4
  36. data/lib/orcid/exceptions.rb +33 -4
  37. data/lib/orcid/named_callbacks.rb +3 -1
  38. data/lib/orcid/spec_support.rb +19 -9
  39. data/lib/orcid/version.rb +1 -1
  40. data/lib/tasks/orcid_tasks.rake +3 -3
  41. data/orcid.gemspec +51 -0
  42. data/rubocop.txt +1164 -0
  43. data/script/fast_specs +22 -0
  44. data/spec/controllers/orcid/profile_connections_controller_spec.rb +101 -0
  45. data/spec/controllers/orcid/profile_requests_controller_spec.rb +116 -0
  46. data/spec/factories/orcid_profile_requests.rb +11 -0
  47. data/spec/factories/users.rb +9 -0
  48. data/spec/fast_helper.rb +12 -0
  49. data/spec/features/batch_profile_spec.rb +31 -0
  50. data/spec/features/non_ui_based_interactions_spec.rb +117 -0
  51. data/spec/features/profile_connection_feature_spec.rb +19 -0
  52. data/spec/features/public_api_query_spec.rb +36 -0
  53. data/spec/fixtures/orcid_works.xml +55 -0
  54. data/spec/lib/orcid/configuration/provider_spec.rb +40 -0
  55. data/spec/lib/orcid/configuration_spec.rb +38 -0
  56. data/spec/lib/orcid/named_callbacks_spec.rb +28 -0
  57. data/spec/lib/orcid_spec.rb +97 -0
  58. data/spec/models/orcid/profile_connection_spec.rb +81 -0
  59. data/spec/models/orcid/profile_request_spec.rb +131 -0
  60. data/spec/models/orcid/profile_spec.rb +76 -0
  61. data/spec/models/orcid/work/xml_parser_spec.rb +40 -0
  62. data/spec/models/orcid/work/xml_renderer_spec.rb +18 -0
  63. data/spec/models/orcid/work_spec.rb +53 -0
  64. data/spec/services/orcid/remote/profile_creation_service_spec.rb +40 -0
  65. data/spec/services/orcid/remote/profile_query_service/query_parameter_builder_spec.rb +44 -0
  66. data/spec/services/orcid/remote/profile_query_service/search_response_spec.rb +14 -0
  67. data/spec/services/orcid/remote/profile_query_service_spec.rb +118 -0
  68. data/spec/services/orcid/remote/service_spec.rb +26 -0
  69. data/spec/services/orcid/remote/work_service_spec.rb +44 -0
  70. data/spec/spec_helper.rb +99 -0
  71. data/spec/support/non_orcid_models.rb +11 -0
  72. data/spec/support/stub_callback.rb +25 -0
  73. data/spec/test_app_templates/Gemfile.extra +3 -0
  74. data/spec/test_app_templates/lib/generators/test_app_generator.rb +36 -0
  75. data/spec/views/orcid/profile_connections/new.html.erb_spec.rb +25 -0
  76. data/spec/views/orcid/profile_requests/new.html.erb_spec.rb +23 -0
  77. metadata +119 -29
  78. data/app/runners/orcid/profile_lookup_runner.rb +0 -33
  79. data/app/runners/orcid/runner.rb +0 -15
  80. data/app/services/orcid/remote/profile_lookup_service.rb +0 -56
  81. data/app/services/orcid/remote/profile_lookup_service/search_response.rb +0 -23
  82. data/lib/orcid/query_parameter_builder.rb +0 -38
@@ -0,0 +1,99 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+
3
+ # Normally loaded via application config; I want the production code to
4
+ # choke when app_id and app_secret is not set.
5
+ ENV["RAILS_ENV"] ||= 'test'
6
+ if ENV['COVERAGE']
7
+ require 'simplecov'
8
+ SimpleCov.start 'rails'
9
+ SimpleCov.command_name "spec"
10
+ end
11
+
12
+
13
+ require 'figaro' # must declare before the application loads
14
+ require 'engine_cart'
15
+ require 'omniauth-orcid'
16
+ require File.expand_path("../internal/config/environment.rb", __FILE__)
17
+
18
+ EngineCart.load_application!
19
+
20
+ require 'orcid/spec_support'
21
+ require 'rspec/rails'
22
+ require 'rspec/autorun'
23
+ require 'rspec/given'
24
+ require 'database_cleaner'
25
+ require 'factory_girl'
26
+ require 'rspec-html-matchers'
27
+ require 'webmock/rspec'
28
+ require 'capybara'
29
+ require 'capybara-webkit'
30
+
31
+ # Requires supporting ruby files with custom matchers and macros, etc,
32
+ # in spec/support/ and its subdirectories.
33
+ Dir[File.expand_path("../support/**/*.rb",__FILE__)].each {|f| require f}
34
+ Dir[File.expand_path("../factories/**/*.rb",__FILE__)].each {|f| require f}
35
+
36
+ # From https://github.com/plataformatec/devise/wiki/How-To:-Stub-authentication-in-controller-specs
37
+ module ControllerHelpers
38
+ def sign_in(user = double('user'))
39
+ if user.nil?
40
+ request.env['warden'].stub(:authenticate!).
41
+ and_throw(:warden, {:scope => :user})
42
+ controller.stub :current_user => nil
43
+ else
44
+ request.env['warden'].stub :authenticate! => user
45
+ controller.stub :current_user => user
46
+ end
47
+ end
48
+
49
+ def main_app
50
+ controller.main_app
51
+ end
52
+
53
+ def orcid
54
+ controller.orcid
55
+ end
56
+
57
+ end
58
+
59
+ module FixtureFiles
60
+ def fixture_file(path)
61
+ Pathname.new(File.expand_path(File.join("../fixtures", path), __FILE__))
62
+ end
63
+ end
64
+
65
+ RSpec.configure do |config|
66
+ config.include Devise::TestHelpers, type: :controller
67
+ config.include ControllerHelpers, type: :controller
68
+ config.include FixtureFiles
69
+
70
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
71
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
72
+
73
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
74
+ # examples within a transaction, remove the following line or assign false
75
+ # instead of true.
76
+ config.use_transactional_fixtures = true
77
+
78
+ # If true, the base class of anonymous controllers will be inferred
79
+ # automatically. This will be the default behavior in future versions of
80
+ # rspec-rails.
81
+ config.infer_base_class_for_anonymous_controllers = false
82
+
83
+ # Run specs in random order to surface order dependencies. If you find an
84
+ # order dependency and want to debug it, you can fix the order by providing
85
+ # the seed, which is printed after each run.
86
+ # --seed 1234
87
+ config.order = "random"
88
+
89
+ config.before(:suite) do
90
+ DatabaseCleaner.strategy = :truncation
91
+ end
92
+ config.before(:each) do
93
+ OmniAuth.config.test_mode = true
94
+ DatabaseCleaner.start
95
+ end
96
+ config.after(:each) do
97
+ DatabaseCleaner.clean
98
+ end
99
+ end
@@ -0,0 +1,11 @@
1
+ module NonOrcid
2
+ class Article
3
+ attr_accessor :title
4
+
5
+ def initialize(attributes = {})
6
+ attributes.each do |key, value|
7
+ send("#{key}=", value) if respond_to?("#{key}=")
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,25 @@
1
+ class StubCallback
2
+ def invoke(*args)
3
+ @invoked_args = args
4
+ end
5
+
6
+ def invoked(*args)
7
+ @invoked_args
8
+ end
9
+
10
+ def configure(*names)
11
+ lambda do |on|
12
+ configure_name(on, :success)
13
+ configure_name(on, :failure)
14
+ names.each do |name|
15
+ configure_name(on, name)
16
+ end
17
+ end
18
+ end
19
+
20
+ private
21
+
22
+ def configure_name(on, name)
23
+ on.send(name) { |*args| invoke(name, *args) }
24
+ end
25
+ end
@@ -0,0 +1,3 @@
1
+ # extra gems to load into the test app go here
2
+ gem 'figaro'
3
+ gem 'devise-multi_auth', path: '/Users/jfriesen/Repositories/devise-multi_auth'
@@ -0,0 +1,36 @@
1
+ require 'rails/generators'
2
+
3
+ class TestAppGenerator < Rails::Generators::Base
4
+ source_root "spec/test_app_templates"
5
+
6
+ def create_application_yml
7
+ application_yml_file = File.expand_path("../../../../../config/application.yml", __FILE__)
8
+ application_yml_example_file = File.expand_path("../../../../../config/application.yml.example", __FILE__)
9
+ if File.exist?(application_yml_file)
10
+ create_link 'config/application.yml', application_yml_file, symbolic:true
11
+ else
12
+ create_link 'config/application.yml', application_yml_example_file, symbolic:true
13
+ end
14
+ end
15
+
16
+ def run_install_oricd
17
+ generate 'orcid:install --devise --skip_application_yml '
18
+ end
19
+
20
+ def create_shims
21
+ create_file 'app/assets/javascripts/jquery.js'
22
+ create_file 'app/assets/javascripts/jquery_ujs.js'
23
+ create_file 'app/assets/javascripts/turbolinks.js'
24
+
25
+ end
26
+
27
+ def insert_home_route
28
+ route 'root :to => "application#index"'
29
+ content = %(
30
+ def index
31
+ render text: 'This page is left intentionally blank'
32
+ end
33
+ )
34
+ inject_into_file 'app/controllers/application_controller.rb', content, after: '< ActionController::Base'
35
+ end
36
+ end
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'orcid/profile_connections/new.html.erb' do
4
+ let(:profile_connection) { Orcid::ProfileConnection.new }
5
+ it 'renders a form' do
6
+ view.stub(:profile_connection).and_return(profile_connection)
7
+ render
8
+ expect(rendered).to(
9
+ have_tag(
10
+ 'form.search-form',
11
+ with: { action: orcid.new_profile_connection_path, method: :get }
12
+ )
13
+ ) do
14
+ with_tag('fieldset') do
15
+ profile_connection.available_query_attribute_names.each do |field_name|
16
+ with_tag(
17
+ 'input',
18
+ with: { name: "profile_connection[#{field_name}]", type: 'search' }
19
+ )
20
+ end
21
+ end
22
+ with_tag('button', with: { type: 'submit' })
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'orcid/profile_requests/new.html.erb' do
4
+ let(:profile_request) { FactoryGirl.build(:orcid_profile_request) }
5
+ it 'renders a form' do
6
+ view.stub(:profile_request).and_return(profile_request)
7
+ render
8
+ expect(rendered).to(
9
+ have_tag('form.new_profile_request', with: { method: :post })
10
+ ) do
11
+ with_tag('fieldset') do
12
+ with_tag('input', with: { name: 'profile_request[given_names]' })
13
+ with_tag('input', with: { name: 'profile_request[family_name]' })
14
+ with_tag('input', with: { name: 'profile_request[primary_email]' })
15
+ with_tag(
16
+ 'input',
17
+ with: { name: 'profile_request[primary_email_confirmation]' }
18
+ )
19
+ end
20
+ with_tag('input', with: { type: 'submit' })
21
+ end
22
+ end
23
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orcid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Friesen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-26 00:00:00.000000000 Z
11
+ date: 2014-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -38,20 +38,34 @@ dependencies:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.1.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: figaro
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'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: devise-multi_auth
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - ~>
46
60
  - !ruby/object:Gem::Version
47
- version: 0.0.3
61
+ version: 0.1.0
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - ~>
53
67
  - !ruby/object:Gem::Version
54
- version: 0.0.3
68
+ version: 0.1.0
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: omniauth-orcid
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -109,13 +123,13 @@ dependencies:
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
- name: sqlite3
126
+ name: byebug
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - '>='
116
130
  - !ruby/object:Gem::Version
117
131
  version: '0'
118
- type: :development
132
+ type: :runtime
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
@@ -123,7 +137,7 @@ dependencies:
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
139
  - !ruby/object:Gem::Dependency
126
- name: engine_cart
140
+ name: sqlite3
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - '>='
@@ -137,7 +151,7 @@ dependencies:
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
153
  - !ruby/object:Gem::Dependency
140
- name: rspec-rails
154
+ name: engine_cart
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - '>='
@@ -151,7 +165,7 @@ dependencies:
151
165
  - !ruby/object:Gem::Version
152
166
  version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
- name: database_cleaner
168
+ name: rspec-rails
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
171
  - - '>='
@@ -165,7 +179,7 @@ dependencies:
165
179
  - !ruby/object:Gem::Version
166
180
  version: '0'
167
181
  - !ruby/object:Gem::Dependency
168
- name: factory_girl
182
+ name: database_cleaner
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
185
  - - '>='
@@ -179,7 +193,7 @@ dependencies:
179
193
  - !ruby/object:Gem::Version
180
194
  version: '0'
181
195
  - !ruby/object:Gem::Dependency
182
- name: rspec-html-matchers
196
+ name: factory_girl
183
197
  requirement: !ruby/object:Gem::Requirement
184
198
  requirements:
185
199
  - - '>='
@@ -193,7 +207,7 @@ dependencies:
193
207
  - !ruby/object:Gem::Version
194
208
  version: '0'
195
209
  - !ruby/object:Gem::Dependency
196
- name: capybara
210
+ name: rspec-html-matchers
197
211
  requirement: !ruby/object:Gem::Requirement
198
212
  requirements:
199
213
  - - '>='
@@ -207,7 +221,7 @@ dependencies:
207
221
  - !ruby/object:Gem::Version
208
222
  version: '0'
209
223
  - !ruby/object:Gem::Dependency
210
- name: capybara-webkit
224
+ name: capybara
211
225
  requirement: !ruby/object:Gem::Requirement
212
226
  requirements:
213
227
  - - '>='
@@ -221,7 +235,7 @@ dependencies:
221
235
  - !ruby/object:Gem::Version
222
236
  version: '0'
223
237
  - !ruby/object:Gem::Dependency
224
- name: webmock
238
+ name: capybara-webkit
225
239
  requirement: !ruby/object:Gem::Requirement
226
240
  requirements:
227
241
  - - '>='
@@ -235,7 +249,7 @@ dependencies:
235
249
  - !ruby/object:Gem::Version
236
250
  version: '0'
237
251
  - !ruby/object:Gem::Dependency
238
- name: figaro
252
+ name: webmock
239
253
  requirement: !ruby/object:Gem::Requirement
240
254
  requirements:
241
255
  - - '>='
@@ -297,6 +311,14 @@ executables: []
297
311
  extensions: []
298
312
  extra_rdoc_files: []
299
313
  files:
314
+ - .gitignore
315
+ - .hound.yml
316
+ - .travis.yml
317
+ - Gemfile
318
+ - LICENSE
319
+ - README.md
320
+ - Rakefile
321
+ - app/assets/images/orcid/.keep
300
322
  - app/assets/javascripts/orcid/application.js
301
323
  - app/assets/stylesheets/orcid/application.css
302
324
  - app/controllers/orcid/application_controller.rb
@@ -306,39 +328,74 @@ files:
306
328
  - app/models/orcid/profile_connection.rb
307
329
  - app/models/orcid/profile_request.rb
308
330
  - app/models/orcid/work.rb
309
- - app/runners/orcid/profile_lookup_runner.rb
310
- - app/runners/orcid/runner.rb
331
+ - app/models/orcid/work/xml_parser.rb
332
+ - app/models/orcid/work/xml_renderer.rb
333
+ - app/services/orcid/remote.rb
311
334
  - app/services/orcid/remote/profile_creation_service.rb
312
- - app/services/orcid/remote/profile_lookup_service/search_response.rb
313
- - app/services/orcid/remote/profile_lookup_service.rb
335
+ - app/services/orcid/remote/profile_query_service.rb
336
+ - app/services/orcid/remote/profile_query_service/query_parameter_builder.rb
337
+ - app/services/orcid/remote/profile_query_service/search_response.rb
314
338
  - app/services/orcid/remote/service.rb
315
339
  - app/services/orcid/remote/work_service.rb
316
- - app/services/orcid/remote.rb
317
340
  - app/templates/orcid/work.template.v1.1.xml.erb
318
341
  - app/views/layouts/orcid/application.html.erb
342
+ - app/views/orcid/profile_connections/_orcid_connector.html.erb
319
343
  - app/views/orcid/profile_connections/new.html.erb
320
344
  - app/views/orcid/profile_requests/new.html.erb
321
345
  - app/views/orcid/profile_requests/show.html.erb
322
- - config/application.yml
346
+ - bin/rails
347
+ - config/application.yml.example
323
348
  - config/locales/orcid.en.yml
324
349
  - config/routes.rb
325
350
  - db/migrate/20140205185338_create_orcid_profile_requests.rb
326
351
  - lib/generators/orcid/install/install_generator.rb
327
352
  - lib/generators/orcid/install/templates/orcid_initializer.rb.erb
328
- - lib/orcid/configuration/provider.rb
353
+ - lib/orcid.rb
329
354
  - lib/orcid/configuration.rb
355
+ - lib/orcid/configuration/provider.rb
330
356
  - lib/orcid/engine.rb
331
357
  - lib/orcid/exceptions.rb
332
358
  - lib/orcid/named_callbacks.rb
333
- - lib/orcid/query_parameter_builder.rb
334
359
  - lib/orcid/spec_support.rb
335
360
  - lib/orcid/version.rb
336
- - lib/orcid.rb
337
361
  - lib/tasks/orcid_tasks.rake
338
- - LICENSE
339
- - Rakefile
340
- - README.md
341
- homepage: https://github.com/jeremyf/orcid_integration
362
+ - orcid.gemspec
363
+ - rubocop.txt
364
+ - script/fast_specs
365
+ - spec/controllers/orcid/profile_connections_controller_spec.rb
366
+ - spec/controllers/orcid/profile_requests_controller_spec.rb
367
+ - spec/factories/orcid_profile_requests.rb
368
+ - spec/factories/users.rb
369
+ - spec/fast_helper.rb
370
+ - spec/features/batch_profile_spec.rb
371
+ - spec/features/non_ui_based_interactions_spec.rb
372
+ - spec/features/profile_connection_feature_spec.rb
373
+ - spec/features/public_api_query_spec.rb
374
+ - spec/fixtures/orcid_works.xml
375
+ - spec/lib/orcid/configuration/provider_spec.rb
376
+ - spec/lib/orcid/configuration_spec.rb
377
+ - spec/lib/orcid/named_callbacks_spec.rb
378
+ - spec/lib/orcid_spec.rb
379
+ - spec/models/orcid/profile_connection_spec.rb
380
+ - spec/models/orcid/profile_request_spec.rb
381
+ - spec/models/orcid/profile_spec.rb
382
+ - spec/models/orcid/work/xml_parser_spec.rb
383
+ - spec/models/orcid/work/xml_renderer_spec.rb
384
+ - spec/models/orcid/work_spec.rb
385
+ - spec/services/orcid/remote/profile_creation_service_spec.rb
386
+ - spec/services/orcid/remote/profile_query_service/query_parameter_builder_spec.rb
387
+ - spec/services/orcid/remote/profile_query_service/search_response_spec.rb
388
+ - spec/services/orcid/remote/profile_query_service_spec.rb
389
+ - spec/services/orcid/remote/service_spec.rb
390
+ - spec/services/orcid/remote/work_service_spec.rb
391
+ - spec/spec_helper.rb
392
+ - spec/support/non_orcid_models.rb
393
+ - spec/support/stub_callback.rb
394
+ - spec/test_app_templates/Gemfile.extra
395
+ - spec/test_app_templates/lib/generators/test_app_generator.rb
396
+ - spec/views/orcid/profile_connections/new.html.erb_spec.rb
397
+ - spec/views/orcid/profile_requests/new.html.erb_spec.rb
398
+ homepage: https://github.com/jeremyf/orcid
342
399
  licenses: []
343
400
  metadata: {}
344
401
  post_install_message:
@@ -361,4 +418,37 @@ rubygems_version: 2.0.14
361
418
  signing_key:
362
419
  specification_version: 4
363
420
  summary: A Rails engine for orcid.org integration.
364
- test_files: []
421
+ test_files:
422
+ - spec/controllers/orcid/profile_connections_controller_spec.rb
423
+ - spec/controllers/orcid/profile_requests_controller_spec.rb
424
+ - spec/factories/orcid_profile_requests.rb
425
+ - spec/factories/users.rb
426
+ - spec/fast_helper.rb
427
+ - spec/features/batch_profile_spec.rb
428
+ - spec/features/non_ui_based_interactions_spec.rb
429
+ - spec/features/profile_connection_feature_spec.rb
430
+ - spec/features/public_api_query_spec.rb
431
+ - spec/fixtures/orcid_works.xml
432
+ - spec/lib/orcid/configuration/provider_spec.rb
433
+ - spec/lib/orcid/configuration_spec.rb
434
+ - spec/lib/orcid/named_callbacks_spec.rb
435
+ - spec/lib/orcid_spec.rb
436
+ - spec/models/orcid/profile_connection_spec.rb
437
+ - spec/models/orcid/profile_request_spec.rb
438
+ - spec/models/orcid/profile_spec.rb
439
+ - spec/models/orcid/work/xml_parser_spec.rb
440
+ - spec/models/orcid/work/xml_renderer_spec.rb
441
+ - spec/models/orcid/work_spec.rb
442
+ - spec/services/orcid/remote/profile_creation_service_spec.rb
443
+ - spec/services/orcid/remote/profile_query_service/query_parameter_builder_spec.rb
444
+ - spec/services/orcid/remote/profile_query_service/search_response_spec.rb
445
+ - spec/services/orcid/remote/profile_query_service_spec.rb
446
+ - spec/services/orcid/remote/service_spec.rb
447
+ - spec/services/orcid/remote/work_service_spec.rb
448
+ - spec/spec_helper.rb
449
+ - spec/support/non_orcid_models.rb
450
+ - spec/support/stub_callback.rb
451
+ - spec/test_app_templates/Gemfile.extra
452
+ - spec/test_app_templates/lib/generators/test_app_generator.rb
453
+ - spec/views/orcid/profile_connections/new.html.erb_spec.rb
454
+ - spec/views/orcid/profile_requests/new.html.erb_spec.rb