decidim-dev 0.4.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/config/locales/ca.yml +1 -1
  3. data/config/locales/es.yml +1 -1
  4. data/config/locales/eu.yml +1 -1
  5. data/config/locales/fi.yml +1 -1
  6. data/config/locales/fr.yml +1 -1
  7. data/config/locales/it.yml +1 -1
  8. data/config/locales/nl.yml +1 -1
  9. data/config/locales/pl.yml +6 -0
  10. data/lib/decidim/dev/test/authorization_shared_examples.rb +1 -7
  11. data/lib/decidim/dev/test/base_spec_helper.rb +5 -27
  12. data/lib/decidim/dev/test/i18n_shared_examples.rb +1 -1
  13. data/lib/decidim/dev/test/rspec_support/attachments.rb +13 -0
  14. data/lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb +1 -1
  15. data/lib/decidim/dev/test/rspec_support/capybara.rb +3 -9
  16. data/lib/decidim/dev/test/rspec_support/capybara_select2.rb +35 -0
  17. data/lib/decidim/dev/test/rspec_support/comments.rb +19 -0
  18. data/lib/decidim/dev/test/rspec_support/feature.rb +2 -0
  19. data/lib/decidim/dev/test/rspec_support/feature_context.rb +12 -3
  20. data/lib/decidim/dev/test/rspec_support/helpers.rb +0 -10
  21. data/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js +1 -1
  22. data/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-shim.js +10 -0
  23. data/lib/decidim/dev/test/rspec_support/translation_helpers.rb +21 -5
  24. data/lib/decidim/dev/test/spec_helper.rb +2 -1
  25. data/lib/generators/decidim/dummy_generator.rb +12 -0
  26. data/lib/generators/decidim/templates/no_animations.rb +54 -0
  27. metadata +11 -9
  28. data/lib/decidim/dev/assets/Exampledocument.docx +0 -0
  29. data/lib/decidim/dev/assets/Exampledocument.odt +0 -0
  30. data/lib/decidim/dev/test/rspec_support/i18n.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5265649e3685681a751d9769a394558e05fe2398
4
- data.tar.gz: 86a697f84975eac13ac23c8629381dce2ee0a452
3
+ metadata.gz: 5dd9108e1518096a14cae26a4dd181251ac59b3c
4
+ data.tar.gz: 9039f0590deebe7d37820a11468426bbdb83394d
5
5
  SHA512:
6
- metadata.gz: 607fadd5b1568091f4368d03e2c914cae102c324c4ee2439335736e45f9b9efd7542a83057d25c8fee6a5683dbe76f6e2487f75ee9fd48246ca317d658157c59
7
- data.tar.gz: aeeaaa8502a699258a2fa8f5d705bc7c4033aeade44b4c54c67c0ead6891324877b9cbbfdf757d90bd9e03410754ada279ebdce10213db6d1b42084947b33ae5
6
+ metadata.gz: 8afa20d4d069dc493082d5e5379bfee05cab8908bc0600bc701dedefc83e3b5cd3039f4e1295fa46c5c5a4fa120efaaa2a51b3143e5ba17dff8f20739a99a3b3
7
+ data.tar.gz: 47a79e8fa201aeff1d390218de204bba4f79a896859d005593f4f43bfa03b6bba3635418bc85868bf5c8145c257a300b60ed088416fb0422166d994571f087c7
@@ -6,4 +6,4 @@ ca:
6
6
  dummies: "Maniquins"
7
7
  resource_links:
8
8
  test_link:
9
- dummy_resource_dummy: Fictici relacionat
9
+ dummy_resource_dummy: Fictici relacionat
@@ -6,4 +6,4 @@ es:
6
6
  dummies: "Maniquíes"
7
7
  resource_links:
8
8
  test_link:
9
- dummy_resource_dummy: Ficticio relacionado
9
+ dummy_resource_dummy: Ficticio relacionado
@@ -6,4 +6,4 @@ eu:
6
6
  dummies: "Manikiak"
7
7
  resource_links:
8
8
  test_link:
9
- dummy_resource_dummy: ' Honi buruzko adibidea '
9
+ dummy_resource_dummy: ' Honi buruzko adibidea '
@@ -2,4 +2,4 @@ fi:
2
2
  decidim:
3
3
  resource_links:
4
4
  test_link:
5
- dummy_resource_dummy: Liittyvät dummy
5
+ dummy_resource_dummy: Liittyvät dummy
@@ -2,4 +2,4 @@ fr:
2
2
  decidim:
3
3
  resource_links:
4
4
  test_link:
5
- dummy_resource_dummy: Mannequin apparenté
5
+ dummy_resource_dummy: Mannequin apparenté
@@ -6,4 +6,4 @@ it:
6
6
  dummies: "Risorse Fittizie"
7
7
  resource_links:
8
8
  test_link:
9
- dummy_resource_dummy: Risorse fittizie correlate
9
+ dummy_resource_dummy: Risorse fittizie correlate
@@ -2,4 +2,4 @@ nl:
2
2
  decidim:
3
3
  resource_links:
4
4
  test_link:
5
- dummy_resource_dummy: Gerelateerde dummy
5
+ dummy_resource_dummy: Gerelateerde dummy
@@ -0,0 +1,6 @@
1
+ pl:
2
+ decidim:
3
+ dummy:
4
+ admin:
5
+ exports:
6
+ dummies: "Manekiny"
@@ -1,12 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- RSpec.shared_examples "an authorization handler" do
4
- before do
5
- unless respond_to?(:handler)
6
- raise "You need to define `handler` (an instance of the authorization handler) in order to run the shared examples."
7
- end
8
- end
9
-
3
+ shared_examples "an authorization handler" do
10
4
  describe "to_partial_path" do
11
5
  subject { handler.to_partial_path }
12
6
  it { is_expected.to be_kind_of(String) }
@@ -8,25 +8,12 @@ root_path = File.expand_path("..", Dir.pwd)
8
8
  engine_spec_dir = File.join(Dir.pwd, "spec")
9
9
 
10
10
  if ENV["SIMPLECOV"]
11
- require "simplecov"
11
+ require "simplecov/no_defaults"
12
+
12
13
  SimpleCov.root(root_path)
14
+ require "simplecov/defaults"
13
15
 
14
- SimpleCov.start do
15
- filters.clear
16
- add_filter "/test/"
17
- add_filter "/spec/"
18
- add_filter "bundle.js"
19
- add_filter "/vendor/"
20
-
21
- add_filter do |src|
22
- src.filename !~ /^#{root_path}/
23
- end
24
- end
25
-
26
- if ENV["CI"]
27
- require "codecov"
28
- SimpleCov.formatter = SimpleCov::Formatter::Codecov
29
- end
16
+ SimpleCov.command_name File.basename(Dir.pwd)
30
17
  end
31
18
 
32
19
  require "rails"
@@ -36,17 +23,8 @@ require "decidim/core/test"
36
23
 
37
24
  require_relative "rspec_support/feature.rb"
38
25
 
39
- begin
40
- require "#{Decidim::Dev.dummy_app_path}/config/environment"
41
- rescue LoadError
42
- puts "Could not load dummy application. Please ensure you have run `bundle exec rake decidim:generate_test_app`"
43
- puts "Tried to load it from #{Decidim::Dev.dummy_app_path}"
44
- exit(-1)
45
- end
26
+ require "#{Decidim::Dev.dummy_app_path}/config/environment"
46
27
 
47
- # Requires supporting files with custom matchers and macros, etc,
48
- # in ./support/ and its subdirectories.
49
- Dir["#{engine_spec_dir}/support/**/*.rb"].each { |f| require f }
50
28
  Dir["#{engine_spec_dir}/shared/**/*.rb"].each { |f| require f }
51
29
 
52
30
  require_relative "spec_helper"
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "i18n/tasks"
4
4
 
5
- RSpec.shared_examples_for "I18n sanity" do
5
+ shared_examples_for "I18n sanity" do
6
6
  let(:locales) do
7
7
  ENV["ENFORCED_LOCALES"].present? ? ENV["ENFORCED_LOCALES"].split(",") : [:en]
8
8
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.configure do |config|
4
+ config.around(:each, :processing_uploads_for) do |example|
5
+ uploader = example.metadata[:processing_uploads_for]
6
+
7
+ uploader.enable_processing = true
8
+
9
+ example.run
10
+
11
+ uploader.enable_processing = false
12
+ end
13
+ end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- RSpec.shared_context "authenticated user" do
3
+ shared_context "authenticated user" do
4
4
  let(:user) { create(:user, :confirmed) }
5
5
 
6
6
  before do
@@ -23,15 +23,9 @@ end
23
23
 
24
24
  capybara_options = {
25
25
  extensions: [
26
- File.expand_path(
27
- File.join(__dir__, "phantomjs_polyfills", "promise.js")
28
- ),
29
- File.expand_path(
30
- File.join(__dir__, "phantomjs_polyfills", "phantomjs-shim.js")
31
- ),
32
- File.expand_path(
33
- File.join(__dir__, "phantomjs_polyfills", "phantomjs-getOwnPropertyNames.js")
34
- )
26
+ File.join(__dir__, "phantomjs_polyfills", "promise.js"),
27
+ File.join(__dir__, "phantomjs_polyfills", "phantomjs-shim.js"),
28
+ File.join(__dir__, "phantomjs_polyfills", "phantomjs-getOwnPropertyNames.js")
35
29
  ],
36
30
  js_errors: true,
37
31
  url_whitelist: ["http://*.lvh.me", "localhost", "127.0.0.1"],
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ # extracted from https://github.com/goodwill/capybara-select2
4
+
5
+ module Capybara
6
+ module Select2
7
+ def select2(value, options = {})
8
+ raise "Must pass a hash containing 'from' or 'xpath' or 'css'" unless options.is_a?(Hash) && [:from, :xpath, :css].any? { |k| options.has_key? k }
9
+
10
+ if options.has_key? :xpath
11
+ select2_container = find(:xpath, options[:xpath])
12
+ elsif options.has_key? :css
13
+ select2_container = find(:css, options[:css])
14
+ else
15
+ select_name = options[:from]
16
+ select2_container = find("label", text: select_name).find(:xpath, "..").find(".select2-container")
17
+ end
18
+
19
+ # Open select2 field
20
+ select2_container.find(".select2-selection").click
21
+
22
+ if options.has_key? :search
23
+ find(:xpath, "//body").find(".select2-search input.select2-search__field").set(value)
24
+ page.execute_script(%|$("input.select2-search__field:visible").keyup();|)
25
+ drop_container = ".select2-results"
26
+ else
27
+ drop_container = ".select2-dropdown"
28
+ end
29
+
30
+ [value].flatten.each do |val|
31
+ find(:xpath, "//body").find("#{drop_container} li.select2-results__option", text: val).click
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CommentsHelpers
4
+ def have_comment_from(user, text)
5
+ within "#comments" do
6
+ have_content(user.name) && have_content(text)
7
+ end
8
+ end
9
+
10
+ def have_reply_to(comment, text)
11
+ within "#comments #comment_#{comment.id}" do
12
+ have_content(text)
13
+ end
14
+ end
15
+ end
16
+
17
+ RSpec.configure do |config|
18
+ config.include CommentsHelpers, type: :feature
19
+ end
@@ -28,6 +28,7 @@ module Decidim
28
28
  include Reportable
29
29
  include Authorable
30
30
  include HasCategory
31
+ include HasScope
31
32
  include Decidim::Comments::Commentable
32
33
 
33
34
  feature_manifest_name "dummy"
@@ -120,6 +121,7 @@ RSpec.configure do |config|
120
121
  t.references :decidim_feature, index: true
121
122
  t.references :decidim_author, index: true
122
123
  t.references :decidim_category, index: true
124
+ t.references :decidim_scope, index: true
123
125
 
124
126
  t.timestamps
125
127
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- RSpec.shared_context "feature" do
3
+ shared_context "feature" do
4
4
  let(:manifest) { Decidim.find_feature_manifest(manifest_name) }
5
5
 
6
6
  let(:user) { create :user, :confirmed, organization: organization }
@@ -30,7 +30,7 @@ RSpec.shared_context "feature" do
30
30
  end
31
31
  end
32
32
 
33
- RSpec.shared_context "feature admin" do
33
+ shared_context "feature admin" do
34
34
  include_context "feature"
35
35
 
36
36
  let(:current_feature) { feature }
@@ -50,9 +50,18 @@ RSpec.shared_context "feature admin" do
50
50
  def visit_feature_admin
51
51
  visit manage_feature_path(feature)
52
52
  end
53
+
54
+ # Returns the config path for a given feature.
55
+ #
56
+ # feature - the Feature we want to find the root path for.
57
+ #
58
+ # Returns a url.
59
+ def edit_feature_path(feature)
60
+ decidim_admin.edit_feature_path(id: feature.id, participatory_process_id: feature.participatory_process.id)
61
+ end
53
62
  end
54
63
 
55
- RSpec.shared_context "feature process admin" do
64
+ shared_context "feature process admin" do
56
65
  include_context "feature admin"
57
66
 
58
67
  let(:user) do
@@ -22,12 +22,6 @@ module Decidim::FeatureTestHelpers
22
22
  end
23
23
  end
24
24
 
25
- def click_icon(name = nil)
26
- classes = ["icon"]
27
- classes << ["icon--#{name}"] if name
28
- find(".#{classes.join(".")}").click
29
- end
30
-
31
25
  def stripped(text)
32
26
  Nokogiri::HTML(text).text
33
27
  end
@@ -43,10 +37,6 @@ module Decidim::FeatureTestHelpers
43
37
  end
44
38
  end
45
39
 
46
- def stripped(text)
47
- Nokogiri::HTML(text).text
48
- end
49
-
50
40
  RSpec.configure do |config|
51
41
  config.include Decidim::FeatureTestHelpers, type: :feature
52
42
  end
@@ -13,4 +13,4 @@ Object.defineProperty(Object, 'getOwnPropertyNames', {
13
13
  value: getOwnPropertyNames,
14
14
  configurable: true,
15
15
  writable: true
16
- })
16
+ })
@@ -213,3 +213,13 @@ if (typeof Object.assign != 'function') {
213
213
  };
214
214
  })();
215
215
  }
216
+
217
+ /**
218
+ * Polyfill for Array.from
219
+ */
220
+ if (!Array.from) {
221
+ Array.from = function (object) {
222
+ 'use strict';
223
+ return [].slice.call(object);
224
+ };
225
+ }
@@ -17,12 +17,18 @@ module TranslationHelpers
17
17
  # field - the field that holds the translations
18
18
  # locale - the ID of the locale to check
19
19
  # upcase - a boolean to indicate whether the string must be checked upcased or not.
20
- #
21
- # rubocop:disable Style/PredicateName
22
20
  def have_i18n_content(field, locale: I18n.locale, upcase: false)
23
- content = stripped(translated(field, locale: locale))
24
- content = content.upcase if upcase
25
- have_content(content)
21
+ have_content(i18n_content(field, locale: locale, upcase: upcase))
22
+ end
23
+
24
+ # Checks that the current page doesn't have some translated content. It strips
25
+ # the HTML tags from the field (in case there are any).
26
+ #
27
+ # field - the field that holds the translations
28
+ # locale - the ID of the locale to check
29
+ # upcase - a boolean to indicate whether the string must be checked upcased or not.
30
+ def have_no_i18n_content(field, locale: I18n.locale, upcase: false)
31
+ have_no_content(i18n_content(field, locale: locale, upcase: upcase))
26
32
  end
27
33
 
28
34
  # Handles how to fill in i18n form fields.
@@ -78,4 +84,14 @@ module TranslationHelpers
78
84
  yield "#{field}_#{locale}", value
79
85
  end
80
86
  end
87
+
88
+ # Gives a specific language version of a field and (optionally) upcases it
89
+ #
90
+ # field - the field that holds the translations
91
+ # locale - the ID of the locale to check
92
+ # upcase - a boolean to indicate whether the string must be checked upcased or not.
93
+ def i18n_content(field, locale: I18n.locale, upcase: false)
94
+ content = stripped(translated(field, locale: locale))
95
+ upcase ? content.upcase : content
96
+ end
81
97
  end
@@ -18,7 +18,7 @@ require "wisper/rspec/stub_wisper_publisher"
18
18
  require "db-query-matchers"
19
19
 
20
20
  # Requires supporting files with custom matchers and macros, etc,
21
- # in ./support/ and its subdirectories.
21
+ # in ./rspec_support/ and its subdirectories.
22
22
  Dir["#{__dir__}/rspec_support/**/*.rb"].each { |f| require f }
23
23
 
24
24
  RSpec.configure do |config|
@@ -35,4 +35,5 @@ RSpec.configure do |config|
35
35
 
36
36
  config.include TranslationHelpers
37
37
  config.include Rectify::RSpec::Helpers
38
+ config.include Capybara::Select2
38
39
  end
@@ -52,11 +52,23 @@ module Decidim
52
52
  # initializer comments)
53
53
  template "autoprefixer.yml", "#{dummy_app_path}/config/autoprefixer.yml"
54
54
  template "autoprefixer_initializer.rb", "#{dummy_app_path}/config/initializers/autoprefixer.rb"
55
+
56
+ template "no_animations.rb", "#{dummy_app_path}/app/middleware/no_animations.rb"
55
57
  end
56
58
 
57
59
  def test_env
58
60
  gsub_file "#{dummy_app_path}/config/environments/test.rb",
59
61
  /allow_forgery_protection = (.*)/, "allow_forgery_protection = true"
62
+
63
+ inject_into_file "#{dummy_app_path}/config/environments/test.rb",
64
+ after: "allow_forgery_protection = true\n" do
65
+ <<~RUBY.gsub(/^ *\|/, "")
66
+ |
67
+ | # Inject middleware to disable CSS animations
68
+ | config.middleware.use NoAnimations
69
+ |
70
+ RUBY
71
+ end
60
72
  end
61
73
 
62
74
  private
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Disables CSS3 and jQuery animations
5
+ #
6
+ class NoAnimations
7
+ def initialize(app, _options = {})
8
+ @app = app
9
+ end
10
+
11
+ def call(env)
12
+ @status, @headers, @body = @app.call(env)
13
+ return [@status, @headers, @body] unless html?
14
+ response = Rack::Response.new([], @status, @headers)
15
+
16
+ @body.each { |fragment| response.write inject(fragment) }
17
+ @body.close if @body.respond_to?(:close)
18
+
19
+ response.finish
20
+ end
21
+
22
+ private
23
+
24
+ def html?
25
+ @headers["Content-Type"] =~ /html/
26
+ end
27
+
28
+ def inject(fragment)
29
+ disable_animations = <<~JS
30
+ <script type="text/javascript">(typeof jQuery !== 'undefined') && (jQuery.fx.off = true);</script>
31
+ <style>
32
+ * {
33
+ -o-transition: none !important;
34
+ -moz-transition: none !important;
35
+ -ms-transition: none !important;
36
+ -webkit-transition: none !important;
37
+ transition: none !important;
38
+ -o-transform: none !important;
39
+ -moz-transform: none !important;
40
+ -ms-transform: none !important;
41
+ -webkit-transform: none !important;
42
+ transform: none !important;
43
+ -webkit-animation: none !important;
44
+ -moz-animation: none !important;
45
+ -o-animation: none !important;
46
+ -ms-animation: none !important;
47
+ animation: none !important;
48
+ }
49
+ </style>
50
+ JS
51
+
52
+ fragment.gsub(%r{</head>}, disable_animations + "</head>")
53
+ end
54
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-08-02 00:00:00.000000000 Z
13
+ date: 2017-08-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.4.4
21
+ version: 0.5.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.4.4
28
+ version: 0.5.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: factory_girl_rails
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -192,14 +192,14 @@ dependencies:
192
192
  requirements:
193
193
  - - "~>"
194
194
  - !ruby/object:Gem::Version
195
- version: 1.7.3
195
+ version: 1.8.4
196
196
  type: :runtime
197
197
  prerelease: false
198
198
  version_requirements: !ruby/object:Gem::Requirement
199
199
  requirements:
200
200
  - - "~>"
201
201
  - !ruby/object:Gem::Version
202
- version: 1.7.3
202
+ version: 1.8.4
203
203
  - !ruby/object:Gem::Dependency
204
204
  name: poltergeist
205
205
  requirement: !ruby/object:Gem::Requirement
@@ -348,9 +348,8 @@ files:
348
348
  - config/locales/fr.yml
349
349
  - config/locales/it.yml
350
350
  - config/locales/nl.yml
351
+ - config/locales/pl.yml
351
352
  - lib/decidim/dev.rb
352
- - lib/decidim/dev/assets/Exampledocument.docx
353
- - lib/decidim/dev/assets/Exampledocument.odt
354
353
  - lib/decidim/dev/assets/Exampledocument.pdf
355
354
  - lib/decidim/dev/assets/avatar.jpg
356
355
  - lib/decidim/dev/assets/city.jpeg
@@ -366,9 +365,12 @@ files:
366
365
  - lib/decidim/dev/test/i18n_shared_examples.rb
367
366
  - lib/decidim/dev/test/rspec_support/action_mailer.rb
368
367
  - lib/decidim/dev/test/rspec_support/active_job.rb
368
+ - lib/decidim/dev/test/rspec_support/attachments.rb
369
369
  - lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
370
370
  - lib/decidim/dev/test/rspec_support/authorization_handlers.rb
371
371
  - lib/decidim/dev/test/rspec_support/capybara.rb
372
+ - lib/decidim/dev/test/rspec_support/capybara_select2.rb
373
+ - lib/decidim/dev/test/rspec_support/comments.rb
372
374
  - lib/decidim/dev/test/rspec_support/database_cleaner.rb
373
375
  - lib/decidim/dev/test/rspec_support/factory_girl.rb
374
376
  - lib/decidim/dev/test/rspec_support/feature.rb
@@ -376,7 +378,6 @@ files:
376
378
  - lib/decidim/dev/test/rspec_support/geocoder.rb
377
379
  - lib/decidim/dev/test/rspec_support/helpers.rb
378
380
  - lib/decidim/dev/test/rspec_support/html_matchers.rb
379
- - lib/decidim/dev/test/rspec_support/i18n.rb
380
381
  - lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
381
382
  - lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-shim.js
382
383
  - lib/decidim/dev/test/rspec_support/phantomjs_polyfills/promise.js
@@ -389,6 +390,7 @@ files:
389
390
  - lib/generators/decidim/dummy_generator.rb
390
391
  - lib/generators/decidim/templates/autoprefixer.yml
391
392
  - lib/generators/decidim/templates/autoprefixer_initializer.rb
393
+ - lib/generators/decidim/templates/no_animations.rb
392
394
  - lib/tasks/locale_checker.rake
393
395
  - lib/tasks/test_app.rake
394
396
  homepage: https://github.com/decidim/decidim
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- RSpec.configure do |config|
4
- config.before(:suite) do
5
- I18n.config.enforce_available_locales = false
6
- I18n.available_locales = %w(en ca es)
7
- Decidim.available_locales = %w(en ca es)
8
- end
9
- end