decidim-core 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b678fa39fc54987694c533b51319b1dc379d0d3cbc4bd4c55a461e3073ce4e4b
4
- data.tar.gz: 21a649a1c0c4d7ab8e536f4c16711b9f5114a4612d179b6ea766f234a25b9bbe
3
+ metadata.gz: c65afa82b02928bbfeb504d111c2e8ee5176c2fe6ab69d760e825d1deaf327c3
4
+ data.tar.gz: 23acac7d37a50ba0617e60210058cfcffbc5dcf332ff4c8fc2c8ce637614d183
5
5
  SHA512:
6
- metadata.gz: f833a92f4aa731108ca778f0f5a1a9abd52d4738317ff89927c02d1bc38dc0db62ca584a0f28070e2a408a69cdc13a2323803d90bbaac282d3b34d7068eb2d8c
7
- data.tar.gz: 295dc13f2b6f3c65d4cf9b850a64991d2813da497dc3f3ee4c7b69cf729806b00a5e91420f5628c28fa68eb26621f3b80f9fc216e009cb8de19a8178bbfd8bd6
6
+ metadata.gz: f7be7355a6d78085cd324ab0d2d2ab6760a7604afabc0618df5a796e3c46e017965f08df66d7e84c4d779abd6c845f38cd1882e29da064622c556d86844b16cd
7
+ data.tar.gz: 4d51acb91bb861de5f56dd55239d1e0f67b3979c1d314b701cd91cc04cfc793e2f120e803217f60c52baec1aa7e8985a0f86270f142371f3a41688a31b318eec
@@ -28,12 +28,6 @@ module Decidim
28
28
  #
29
29
  # Returns a String.
30
30
  def icon(name, options = {})
31
- # Ugly hack to work around the issue of phantomjs not sending js events
32
- # when clicking on a SVG element.
33
- if Rails.env.test?
34
- return content_tag(:span, "?", class: "icon icon--#{name}")
35
- end
36
-
37
31
  html_properties = {}
38
32
 
39
33
  html_properties["width"] = options[:width]
@@ -1,21 +1,23 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  shared_examples_for "a 404 page" do
4
- before do
5
- allow(Rails.application).to \
6
- receive(:env_config).with(no_args).and_wrap_original do |m, *|
7
- m.call.merge(
8
- "action_dispatch.show_exceptions" => true,
9
- "action_dispatch.show_detailed_exceptions" => false
10
- )
11
- end
4
+ describe "visiting the page", driver: :rack_test do
5
+ before do
6
+ allow(Rails.application).to \
7
+ receive(:env_config).with(no_args).and_wrap_original do |m, *|
8
+ m.call.merge(
9
+ "action_dispatch.show_exceptions" => true,
10
+ "action_dispatch.show_detailed_exceptions" => false
11
+ )
12
+ end
12
13
 
13
- visit target_path
14
- end
14
+ visit target_path
15
+ end
15
16
 
16
- it "leads to a 404" do
17
- expect(page).to have_content("The page you're looking for can't be found")
17
+ it "leads to a 404" do
18
+ expect(page).to have_content("The page you're looking for can't be found")
18
19
 
19
- expect(page).to have_http_status(:not_found)
20
+ expect(page).to have_http_status(:not_found)
21
+ end
20
22
  end
21
23
  end
@@ -5,13 +5,11 @@ shared_examples "reports" do
5
5
  it "should be given the option to sign in" do
6
6
  visit reportable_path
7
7
 
8
- expect(page).to have_selector(".author-data__extra")
8
+ expect(page).to have_no_css("body.is-reveal-open")
9
9
 
10
- within ".author-data__extra", match: :first do
11
- page.find("button").click
12
- end
10
+ click_button "Report"
13
11
 
14
- expect(page).to have_css("#loginModal", visible: true)
12
+ expect(page).to have_css("body.is-reveal-open")
15
13
  end
16
14
  end
17
15
 
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-core version.
5
5
  module Core
6
6
  def self.version
7
- "0.7.2"
7
+ "0.7.3"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
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-11-07 00:00:00.000000000 Z
13
+ date: 2017-11-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -466,28 +466,28 @@ dependencies:
466
466
  requirements:
467
467
  - - '='
468
468
  - !ruby/object:Gem::Version
469
- version: 0.7.2
469
+ version: 0.7.3
470
470
  type: :runtime
471
471
  prerelease: false
472
472
  version_requirements: !ruby/object:Gem::Requirement
473
473
  requirements:
474
474
  - - '='
475
475
  - !ruby/object:Gem::Version
476
- version: 0.7.2
476
+ version: 0.7.3
477
477
  - !ruby/object:Gem::Dependency
478
478
  name: decidim-dev
479
479
  requirement: !ruby/object:Gem::Requirement
480
480
  requirements:
481
481
  - - '='
482
482
  - !ruby/object:Gem::Version
483
- version: 0.7.2
483
+ version: 0.7.3
484
484
  type: :development
485
485
  prerelease: false
486
486
  version_requirements: !ruby/object:Gem::Requirement
487
487
  requirements:
488
488
  - - '='
489
489
  - !ruby/object:Gem::Version
490
- version: 0.7.2
490
+ version: 0.7.3
491
491
  description: Adds core features so other engines can hook into the framework.
492
492
  email:
493
493
  - josepjaume@gmail.com