Skip to content

Commit

Permalink
🚧 🐛 test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
moustachu committed Jan 8, 2019
1 parent d2cf521 commit 9756e00
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 12 deletions.
7 changes: 5 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@ ruby RUBY_VERSION
gem "decidim", git: "https://github.com/decidim/decidim", branch: "0.16-stable"
gem "decidim-questions", path: "."

gem "bootsnap", "~> 1.3"

gem "puma", "~> 3.0"
gem "uglifier", "~> 4.1"

gem "faker", "~> 1.9"

group :development, :test do
gem "byebug", "~> 10.0", platform: :mri

gem "decidim-dev", git: "https://github.com/decidim/decidim"
gem "decidim-dev", git: "https://github.com/decidim/decidim", branch: "0.16-stable"
end

group :development do
gem "faker", "~> 1.9"
gem "letter_opener_web", "~> 1.3"
gem "listen", "~> 3.1"
gem "spring", "~> 2.0"
Expand Down
22 changes: 15 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/decidim/decidim
revision: 5c0099dc1b3bf9bdd8a650631ffc59547a644fea
revision: c0036828b25298c04b1b46f3a616454a47b8b230
branch: 0.16-stable
specs:
decidim (0.16.0)
Expand All @@ -23,11 +23,6 @@ GIT
decidim-surveys (= 0.16.0)
decidim-system (= 0.16.0)
decidim-verifications (= 0.16.0)

GIT
remote: https://github.com/decidim/decidim
revision: 1a10cee7530b27c2dc51980b5713452f9ed9de5f
specs:
decidim-accountability (0.16.0)
decidim-comments (= 0.16.0)
decidim-core (= 0.16.0)
Expand Down Expand Up @@ -195,7 +190,16 @@ PATH
remote: .
specs:
decidim-questions (0.16.0)
acts_as_list (>= 0.9)
cells-erb (~> 0.1.0)
cells-rails (~> 0.0.9)
decidim-comments (= 0.16.0)
decidim-core (= 0.16.0)
doc2text (>= 0.3.3)
kaminari (~> 1.0)
ransack (~> 2.0)
redcarpet (>= 3.4)
social-share-button (~> 1.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -271,6 +275,8 @@ GEM
parser (>= 2.4)
smart_properties
bindex (0.5.0)
bootsnap (1.3.2)
msgpack (~> 1.0)
builder (3.2.3)
byebug (10.0.2)
capybara (3.12.0)
Expand Down Expand Up @@ -474,6 +480,7 @@ GEM
mixlib-cli (1.7.0)
mixlib-config (2.2.18)
tomlrb
msgpack (1.2.6)
multi_json (1.13.1)
multi_xml (0.6.0)
multipart-post (2.0.0)
Expand Down Expand Up @@ -734,6 +741,7 @@ PLATFORMS
ruby

DEPENDENCIES
bootsnap (~> 1.3)
byebug (~> 10.0)
decidim!
decidim-dev!
Expand All @@ -748,7 +756,7 @@ DEPENDENCIES
web-console (~> 3.5)

RUBY VERSION
ruby 2.5.3p105
ruby 2.5.1p57

BUNDLED WITH
2.0.1
6 changes: 6 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# frozen_string_literal: true

require "decidim/dev/common_rake"

desc "Generates a dummy app for testing"
task test_app: "decidim:generate_external_test_app"

desc "Generates a development app."
task development_app: "decidim:generate_external_development_app"
4 changes: 2 additions & 2 deletions lib/decidim/questions/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class Engine < ::Rails::Engine
end
end

Decidim.metrics_registry.register(:votes) do |metric_registry|
Decidim.metrics_registry.register(:question_votes) do |metric_registry|
metric_registry.manager_class = "Decidim::Questions::Metrics::VotesMetricManage"

metric_registry.settings do |settings|
Expand All @@ -211,7 +211,7 @@ class Engine < ::Rails::Engine
end
end

Decidim.metrics_registry.register(:endorsements) do |metric_registry|
Decidim.metrics_registry.register(:question_endorsements) do |metric_registry|
metric_registry.manager_class = "Decidim::Questions::Metrics::EndorsementsMetricManage"

metric_registry.settings do |settings|
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ENV["ENGINE_ROOT"] = File.dirname(__dir__)

Decidim::Dev.dummy_app_path = File.expand_path(File.join("..", "spec", "decidim_dummy_app"))
Decidim::Dev.dummy_app_path = File.expand_path(File.join("spec", "decidim_dummy_app"))

require "decidim/dev/test/base_spec_helper"
require "decidim/comments/test"

0 comments on commit 9756e00

Please sign in to comment.