decidim-dev 0.4.2 → 0.4.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
  SHA1:
3
- metadata.gz: 21aff4e6a47113c38d7a5c73d1ea7aeeaccf21b3
4
- data.tar.gz: c4f7362c5c962ee29ab27f9bbfd7a87e72e92688
3
+ metadata.gz: d9c8abada13b165b05c037a075c770a75f83f797
4
+ data.tar.gz: 7516c82b6d19a5d15ed0044e6f3c4bb140bb4cc6
5
5
  SHA512:
6
- metadata.gz: bfffdde8cae21fc3c31ba510d5ee530482eeb52e18800e2df123691ecd298d096f8af2d4340fa86e5f35d21f5aad7ec73a85e7554e032c5724edcf1580857b6e
7
- data.tar.gz: 2128e6080d64a5d02258b28ed5bba357821aeb99313da7dad01a81754485c674a198d8560b67dc5cf59f330611ce300b078053c3f89bf14f92dc07f2f7670620
6
+ metadata.gz: 14ed20c7020e195e63c60a5173b4685010601c3425d09ec8f6b3b55f4aabc1e15bc35f38c93c918743247d5457b5d00225e04bef2da7ba6e24f4407679b9c589
7
+ data.tar.gz: 5d52de1c67d2a909c675ba658ca0f8ba369e8d0fa7795add8fa8c1047fa79fe802321247dd37f907a962abbe0df39caa70db53cd1efecd1c212c2e8e4bcba9fe
data/lib/decidim/dev.rb CHANGED
@@ -14,6 +14,11 @@ module Decidim
14
14
  File.expand_path(File.join(__dir__, "dev", "assets", name))
15
15
  end
16
16
 
17
+ # Public: Returns a file for testing, just like file fields expect it
18
+ def self.test_file(filename, content_type)
19
+ Rack::Test::UploadedFile.new(asset(filename), content_type)
20
+ end
21
+
17
22
  # Public: add rake tasks
18
23
  def self.install_tasks
19
24
  Dir[File.join(__dir__, "../tasks/*.rake")].each do |file|
@@ -2,6 +2,12 @@
2
2
 
3
3
  # Helpers that get automatically included in feature specs.
4
4
  module Decidim::FeatureTestHelpers
5
+ def click_submenu_link(text)
6
+ within ".secondary-nav--subnav" do
7
+ click_link text
8
+ end
9
+ end
10
+
5
11
  def within_user_menu
6
12
  within ".topbar__user__logged" do
7
13
  find("a", text: user.name).hover
@@ -3,5 +3,5 @@
3
3
  require "wisper/rspec/matchers"
4
4
 
5
5
  RSpec.configure do |config|
6
- config.include(Wisper::RSpec::BroadcastMatcher)
6
+ config.include Wisper::RSpec::BroadcastMatcher
7
7
  end
@@ -36,7 +36,7 @@ module Decidim
36
36
  Decidim::Generators::AppGenerator.start [
37
37
  dummy_app_path,
38
38
  "--app_const_base=DummyApplication",
39
- "--skip_gemfile",
39
+ "--skip-gemfile",
40
40
  "--skip-bundle",
41
41
  "--skip-git",
42
42
  "--skip-keeps",
@@ -10,7 +10,6 @@ namespace :decidim do
10
10
  Decidim::Generators::DummyGenerator.start(
11
11
  [
12
12
  "--dummy_app_path=#{dummy_app_path}",
13
- "--migrate=true",
14
13
  "--quiet"
15
14
  ]
16
15
  )
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.2
4
+ version: 0.4.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-07-21 00:00:00.000000000 Z
13
+ date: 2017-07-25 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.2
21
+ version: 0.4.3
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.2
28
+ version: 0.4.3
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: factory_girl_rails
31
31
  requirement: !ruby/object:Gem::Requirement