-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove codeclimate coverage (#11) * remove codeclimate coverage * change badge * udpate gemfile * add js configuration * add package lock * erblint fix * try to avoid a flaky test registering users * restrict decidim version * gemfile update * bump version 0.21 * rollback version req * fix 0.22 verification changes * fix badge * fix users report * fix users check * bump version * fix gemfile * update gemfile * disable erblit check * fix tests * restore erblints * disable erblit check
- Loading branch information
1 parent
893da69
commit 899aba1
Showing
10 changed files
with
37 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ node_modules/ | |
npm_debug.log | ||
.ruby-version | ||
tags | ||
*.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
shared_examples_for "checking users" do |params| | ||
context "when check without mails" do | ||
before { params[:userlist] = "" } | ||
before { params[:userslist] = "" } | ||
|
||
it "renders the index with info message" do | ||
perform_enqueued_jobs do | ||
|
@@ -15,7 +15,7 @@ | |
end | ||
|
||
context "when check with mails" do | ||
before { params[:userlist] = "[email protected]" } | ||
before { params[:userslist] = "[email protected]" } | ||
|
||
it "renders the index with info message" do | ||
perform_enqueued_jobs do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ module Decidim::DirectVerifications::Verification::Admin | |
|
||
describe "POST create" do | ||
context "when parameters are defaults" do | ||
params = { userlist: "" } | ||
params = { userslist: "" } | ||
it_behaves_like "checking users", params | ||
it "have no registered or authorized users" do | ||
perform_enqueued_jobs do | ||
|
@@ -45,7 +45,7 @@ module Decidim::DirectVerifications::Verification::Admin | |
end | ||
|
||
context "when register users with check" do | ||
params = { userlist: "[email protected]", register: true } | ||
params = { userslist: "[email protected]", register: true } | ||
|
||
it_behaves_like "checking users", params | ||
|
||
|
@@ -68,7 +68,7 @@ module Decidim::DirectVerifications::Verification::Admin | |
end | ||
|
||
context "when register users with authorize" do | ||
params = { userlist: "[email protected]", register: true, authorize: "in" } | ||
params = { userslist: "[email protected]", register: true, authorize: "in" } | ||
|
||
it_behaves_like "registering users", params | ||
it_behaves_like "authorizing users", params | ||
|
@@ -83,7 +83,7 @@ module Decidim::DirectVerifications::Verification::Admin | |
context "when the name is not specified" do | ||
it "infers the name from the email" do | ||
post :create, params: { | ||
userlist: "Name,Email,Type\r\n\"\",[email protected],consumer", | ||
userslist: "Name,Email,Type\r\n\"\",[email protected],consumer", | ||
register: true, | ||
authorize: "in" | ||
} | ||
|
@@ -103,7 +103,7 @@ module Decidim::DirectVerifications::Verification::Admin | |
|
||
it "stores any extra columns as authorization metadata" do | ||
post :create, params: { | ||
userlist: "Name,Email,Type\r\nBrandy,[email protected],consumer,2\r\nWhisky,[email protected],producer,3", | ||
userslist: "Name,Email,Type\r\nBrandy,[email protected],consumer,2\r\nWhisky,[email protected],producer,3", | ||
register: true, | ||
authorize: "in" | ||
} | ||
|
@@ -116,7 +116,7 @@ module Decidim::DirectVerifications::Verification::Admin | |
context "when the name is not specified" do | ||
it "infers the name from the email" do | ||
post :create, params: { | ||
userlist: "Name,Email,Type\r\n\"\",[email protected],consumer", | ||
userslist: "Name,Email,Type\r\n\"\",[email protected],consumer", | ||
register: true, | ||
authorize: "in" | ||
} | ||
|
@@ -129,7 +129,7 @@ module Decidim::DirectVerifications::Verification::Admin | |
end | ||
|
||
context "when register users with revoke" do | ||
params = { userlist: "[email protected]", authorize: "out" } | ||
params = { userslist: "[email protected]", authorize: "out" } | ||
it_behaves_like "revoking users", params | ||
end | ||
end | ||
|