Fix translations error and refactor nested documentable shared example spec.
This commit is contained in:
@@ -1230,7 +1230,21 @@ feature 'Proposals' do
|
||||
|
||||
it_behaves_like "documentable", "proposal", "proposal_path", { "id": "id" }
|
||||
|
||||
it_behaves_like "nested documentable", "proposal", "new_proposal_path"
|
||||
it_behaves_like "nested documentable",
|
||||
"proposal",
|
||||
"new_proposal_path",
|
||||
{ },
|
||||
"fill_new_valid_proposal",
|
||||
"Create proposal",
|
||||
"Proposal created successfully"
|
||||
|
||||
it_behaves_like "nested documentable",
|
||||
"proposal",
|
||||
"edit_proposal_path",
|
||||
{ "id": "id" },
|
||||
nil,
|
||||
"Save changes",
|
||||
"Proposal updated successfully"
|
||||
|
||||
scenario 'Erased author' do
|
||||
user = create(:user)
|
||||
|
||||
Reference in New Issue
Block a user