cmor_testimonials 0.0.51.pre → 0.0.52.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. metadata +6 -101
  3. data/spec/dummy/Rakefile +0 -6
  4. data/spec/dummy/app/assets/config/manifest.js +0 -3
  5. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  6. data/spec/dummy/app/assets/javascripts/cable.js +0 -13
  7. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  8. data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
  9. data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
  10. data/spec/dummy/app/controllers/application_controller.rb +0 -2
  11. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  12. data/spec/dummy/app/jobs/application_job.rb +0 -2
  13. data/spec/dummy/app/mailers/application_mailer.rb +0 -4
  14. data/spec/dummy/app/models/application_record.rb +0 -3
  15. data/spec/dummy/app/views/layouts/application.html.erb +0 -15
  16. data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
  17. data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
  18. data/spec/dummy/bin/bundle +0 -3
  19. data/spec/dummy/bin/rails +0 -4
  20. data/spec/dummy/bin/rake +0 -4
  21. data/spec/dummy/bin/setup +0 -36
  22. data/spec/dummy/bin/update +0 -31
  23. data/spec/dummy/bin/yarn +0 -11
  24. data/spec/dummy/config.ru +0 -5
  25. data/spec/dummy/config/application.rb +0 -31
  26. data/spec/dummy/config/boot.rb +0 -5
  27. data/spec/dummy/config/cable.yml +0 -10
  28. data/spec/dummy/config/database.yml +0 -25
  29. data/spec/dummy/config/environment.rb +0 -5
  30. data/spec/dummy/config/environments/development.rb +0 -61
  31. data/spec/dummy/config/environments/production.rb +0 -94
  32. data/spec/dummy/config/environments/test.rb +0 -46
  33. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
  34. data/spec/dummy/config/initializers/assets.rb +0 -14
  35. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  36. data/spec/dummy/config/initializers/cmor_testimonials.rb +0 -10
  37. data/spec/dummy/config/initializers/content_security_policy.rb +0 -25
  38. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
  39. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  40. data/spec/dummy/config/initializers/i18n.rb +0 -2
  41. data/spec/dummy/config/initializers/inflections.rb +0 -16
  42. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  43. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  44. data/spec/dummy/config/locales/en.yml +0 -33
  45. data/spec/dummy/config/puma.rb +0 -34
  46. data/spec/dummy/config/routes.rb +0 -3
  47. data/spec/dummy/config/spring.rb +0 -6
  48. data/spec/dummy/config/storage.yml +0 -34
  49. data/spec/dummy/db/development.sqlite3 +0 -0
  50. data/spec/dummy/db/migrate/20200119063530_create_active_storage_tables.active_storage.rb +0 -27
  51. data/spec/dummy/db/migrate/20200119063555_create_cmor_testimonials_categories.cmor_testimonials.rb +0 -12
  52. data/spec/dummy/db/migrate/20200119063556_create_cmor_testimonials_testimonials.cmor_testimonials.rb +0 -16
  53. data/spec/dummy/db/schema.rb +0 -57
  54. data/spec/dummy/db/test.sqlite3 +0 -0
  55. data/spec/dummy/log/development.log +0 -126
  56. data/spec/dummy/log/test.log +0 -578
  57. data/spec/dummy/package.json +0 -5
  58. data/spec/dummy/public/404.html +0 -67
  59. data/spec/dummy/public/422.html +0 -67
  60. data/spec/dummy/public/500.html +0 -66
  61. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  62. data/spec/dummy/public/apple-touch-icon.png +0 -0
  63. data/spec/dummy/public/favicon.ico +0 -0
  64. data/spec/dummy/tmp/development_secret.txt +0 -1
  65. data/spec/dummy/tmp/storage/5S/ku/5SkuHECnXFuLLG5z6nKcaHXQ +0 -0
  66. data/spec/dummy/tmp/storage/5r/93/5r93FV2yGGf4L3uCenMGyYdk +0 -0
  67. data/spec/dummy/tmp/storage/6m/Db/6mDbkmxont6fafeAcpMB4A8Q +0 -0
  68. data/spec/dummy/tmp/storage/Au/AN/AuANBoDPvvg4sB96SQy8iCMH +0 -0
  69. data/spec/dummy/tmp/storage/E1/on/E1on5rh1hDWTr1WP6Kbhxdu3 +0 -0
  70. data/spec/dummy/tmp/storage/Fv/3x/Fv3xSS55puqpXgaVTon3X1zh +0 -0
  71. data/spec/dummy/tmp/storage/Kd/yW/KdyWkRohv5svkwpnHk3GUKXW +0 -0
  72. data/spec/dummy/tmp/storage/L2/Z8/L2Z8khBiRvsfGEECooibmwzW +0 -0
  73. data/spec/dummy/tmp/storage/NG/WA/NGWA8YFJrEdDVAhmc4fRbJsT +0 -0
  74. data/spec/dummy/tmp/storage/YH/6F/YH6FYWFzS62jvgfF67dSJvkS +0 -0
  75. data/spec/dummy/tmp/storage/Zt/yC/ZtyC4YZjzwSRnsGXGDrJLBh7 +0 -0
  76. data/spec/dummy/tmp/storage/df/B3/dfB3AzufS1R2iFMtXecYg5UJ +0 -0
  77. data/spec/dummy/tmp/storage/jP/Ae/jPAeMB15ifP98xfLrmQrUXKc +0 -0
  78. data/spec/dummy/tmp/storage/pP/SC/pPSCJrZzzi4oVygvCuwnnGp4 +0 -0
  79. data/spec/dummy/tmp/storage/sE/FM/sEFM27mUsQgJCijPFJF4RUqm +0 -0
  80. data/spec/dummy/tmp/storage/tT/au/tTauQj4qjUJZbin8u9FGqWPN +0 -0
  81. data/spec/dummy/tmp/storage/v8/VE/v8VEB2YXRf7poqaMvXkGEfrW +0 -0
  82. data/spec/dummy/tmp/storage/vy/8M/vy8MFSa3PhoxmW43QZ5vazNw +0 -0
  83. data/spec/factories/cmor/testimonials/categories.rb +0 -7
  84. data/spec/factories/cmor/testimonials/testimonials.rb +0 -17
  85. data/spec/models/cmor/testimonials/category_spec.rb +0 -9
  86. data/spec/models/cmor/testimonials/testimonial_spec.rb +0 -33
  87. data/spec/models/generic_spec.rb +0 -50
  88. data/spec/models/i18n_spec.rb +0 -41
  89. data/spec/rails_helper.rb +0 -63
  90. data/spec/spec_helper.rb +0 -96
  91. data/spec/support/capybara.rb +0 -1
  92. data/spec/support/factory_bot.rb +0 -9
  93. data/spec/support/pry.rb +0 -1
  94. data/spec/support/rao-shoulda_matchers.rb +0 -5
  95. data/spec/support/rao-view_helper.rb +0 -5
  96. data/spec/support/shoulda_matchers.rb +0 -9
  97. data/spec/view_helpers/cmor/testimonials/application_view_helper_spec.rb +0 -37
data/spec/spec_helper.rb DELETED
@@ -1,96 +0,0 @@
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
4
- # this file to always be loaded, without a need to explicitly require it in any
5
- # files.
6
- #
7
- # Given that it is always loaded, you are encouraged to keep this file as
8
- # light-weight as possible. Requiring heavyweight dependencies from this file
9
- # will add to the boot time of your test suite on EVERY test run, even for an
10
- # individual file that may not need all of that loaded. Instead, consider making
11
- # a separate helper file that requires the additional dependencies and performs
12
- # the additional setup, and require it from the spec files that actually need
13
- # it.
14
- #
15
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
16
- RSpec.configure do |config|
17
- # rspec-expectations config goes here. You can use an alternate
18
- # assertion/expectation library such as wrong or the stdlib/minitest
19
- # assertions if you prefer.
20
- config.expect_with :rspec do |expectations|
21
- # This option will default to `true` in RSpec 4. It makes the `description`
22
- # and `failure_message` of custom matchers include text for helper methods
23
- # defined using `chain`, e.g.:
24
- # be_bigger_than(2).and_smaller_than(4).description
25
- # # => "be bigger than 2 and smaller than 4"
26
- # ...rather than:
27
- # # => "be bigger than 2"
28
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
29
- end
30
-
31
- # rspec-mocks config goes here. You can use an alternate test double
32
- # library (such as bogus or mocha) by changing the `mock_with` option here.
33
- config.mock_with :rspec do |mocks|
34
- # Prevents you from mocking or stubbing a method that does not exist on
35
- # a real object. This is generally recommended, and will default to
36
- # `true` in RSpec 4.
37
- mocks.verify_partial_doubles = true
38
- end
39
-
40
- # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
41
- # have no way to turn it off -- the option exists only for backwards
42
- # compatibility in RSpec 3). It causes shared context metadata to be
43
- # inherited by the metadata hash of host groups and examples, rather than
44
- # triggering implicit auto-inclusion in groups with matching metadata.
45
- config.shared_context_metadata_behavior = :apply_to_host_groups
46
-
47
- # The settings below are suggested to provide a good initial experience
48
- # with RSpec, but feel free to customize to your heart's content.
49
- =begin
50
- # This allows you to limit a spec run to individual examples or groups
51
- # you care about by tagging them with `:focus` metadata. When nothing
52
- # is tagged with `:focus`, all examples get run. RSpec also provides
53
- # aliases for `it`, `describe`, and `context` that include `:focus`
54
- # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
55
- config.filter_run_when_matching :focus
56
-
57
- # Allows RSpec to persist some state between runs in order to support
58
- # the `--only-failures` and `--next-failure` CLI options. We recommend
59
- # you configure your source control system to ignore this file.
60
- config.example_status_persistence_file_path = "spec/examples.txt"
61
-
62
- # Limits the available syntax to the non-monkey patched syntax that is
63
- # recommended. For more details, see:
64
- # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
65
- # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
66
- # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
67
- config.disable_monkey_patching!
68
-
69
- # Many RSpec users commonly either run the entire suite or an individual
70
- # file, and it's useful to allow more verbose output when running an
71
- # individual spec file.
72
- if config.files_to_run.one?
73
- # Use the documentation formatter for detailed output,
74
- # unless a formatter has already been configured
75
- # (e.g. via a command-line flag).
76
- config.default_formatter = "doc"
77
- end
78
-
79
- # Print the 10 slowest examples and example groups at the
80
- # end of the spec run, to help surface which specs are running
81
- # particularly slow.
82
- config.profile_examples = 10
83
-
84
- # Run specs in random order to surface order dependencies. If you find an
85
- # order dependency and want to debug it, you can fix the order by providing
86
- # the seed, which is printed after each run.
87
- # --seed 1234
88
- config.order = :random
89
-
90
- # Seed global randomization in this process using the `--seed` CLI option.
91
- # Setting this allows you to use `--seed` to deterministically reproduce
92
- # test failures related to randomization by passing the same `--seed` value
93
- # as the one that triggered the failure.
94
- Kernel.srand config.seed
95
- =end
96
- end
@@ -1 +0,0 @@
1
- require 'capybara'
@@ -1,9 +0,0 @@
1
- require 'factory_bot_rails'
2
-
3
- RSpec.configure do |config|
4
- config.include FactoryBot::Syntax::Methods
5
- end
6
-
7
- # FactoryBot.factories.clear
8
- # FactoryBot.definition_file_paths += [Rails.root.join(*%w(spec factories))]
9
- # FactoryBot.find_definitions
data/spec/support/pry.rb DELETED
@@ -1 +0,0 @@
1
- require 'pry-rails'
@@ -1,5 +0,0 @@
1
- require 'rao/shoulda/matchers'
2
-
3
- RSpec.configure do |config|
4
- config.include Rao::Shoulda::Matchers, type: :feature
5
- end
@@ -1,5 +0,0 @@
1
- require 'rao/view_helper/spec_helper'
2
-
3
- RSpec.configure do |c|
4
- c.include Rao::ViewHelper::SpecHelper, type: :view_helper
5
- end
@@ -1,9 +0,0 @@
1
- require 'shoulda-matchers'
2
-
3
- Shoulda::Matchers.configure do |config|
4
- config.integrate do |with|
5
- with.test_framework :rspec
6
- with.library :rails
7
- with.library :active_model
8
- end
9
- end
@@ -1,37 +0,0 @@
1
- require 'rails_helper'
2
-
3
- RSpec.describe Cmor::Testimonials::ApplicationViewHelper, type: :view_helper do
4
- before(:each) do
5
- register_view_helper Markup::Rails::ApplicationViewHelper, as: :markup_helper
6
- end
7
-
8
- context 'testimonials present' do
9
- let(:testimonials) { create_list(:cmor_testimonials_testimonial, 3) }
10
- let(:category) { create(:cmor_testimonials_category, testimonials: testimonials) }
11
- let(:args) { [category.identifier, {}] }
12
-
13
- describe 'render_category' do
14
- it { expect(html).to have_css('div.cmor-testimonials-category') }
15
- end
16
- end
17
-
18
- context 'testimonials absent' do
19
- let(:testimonials) {[]}
20
- let(:category) { create(:cmor_testimonials_category, testimonials: testimonials) }
21
- let(:args) { [category.identifier, {}] }
22
-
23
- describe 'render_category' do
24
- it { expect(rendered).to eq(nil) }
25
- end
26
- end
27
-
28
- context 'when using a category as first argument' do
29
- let(:testimonials) { create_list(:cmor_testimonials_testimonial, 3) }
30
- let(:category) { create(:cmor_testimonials_category, testimonials: testimonials) }
31
- let(:args) { [category, {}] }
32
-
33
- describe 'render_category' do
34
- it { expect(html).to have_css('div.cmor-testimonials-category') }
35
- end
36
- end
37
- end