User new direct uploads controllers action on imageable.
This commit is contained in:
@@ -1290,42 +1290,44 @@ feature 'Proposals' do
|
||||
|
||||
it_behaves_like "followable", "proposal", "proposal_path", { "id": "id" }
|
||||
|
||||
it_behaves_like "imageable", "proposal", "proposal_path", { "id": "id" }
|
||||
describe "my specs group" do
|
||||
|
||||
it_behaves_like "nested imageable",
|
||||
"proposal",
|
||||
"new_proposal_path",
|
||||
{ },
|
||||
"imageable_fill_new_valid_proposal",
|
||||
"Create proposal",
|
||||
"Proposal created successfully"
|
||||
it_behaves_like "imageable", "proposal", "proposal_path", { "id": "id" }
|
||||
|
||||
it_behaves_like "nested imageable",
|
||||
"proposal",
|
||||
"edit_proposal_path",
|
||||
{ "id": "id" },
|
||||
nil,
|
||||
"Save changes",
|
||||
"Proposal updated successfully"
|
||||
it_behaves_like "nested imageable",
|
||||
"proposal",
|
||||
"new_proposal_path",
|
||||
{ },
|
||||
"imageable_fill_new_valid_proposal",
|
||||
"Create proposal",
|
||||
"Proposal created successfully"
|
||||
|
||||
it_behaves_like "documentable", "proposal", "proposal_path", { "id": "id" }
|
||||
it_behaves_like "nested imageable",
|
||||
"proposal",
|
||||
"edit_proposal_path",
|
||||
{ "id": "id" },
|
||||
nil,
|
||||
"Save changes",
|
||||
"Proposal updated successfully"
|
||||
|
||||
it_behaves_like "nested documentable",
|
||||
"proposal",
|
||||
"new_proposal_path",
|
||||
{ },
|
||||
"documentable_fill_new_valid_proposal",
|
||||
"Create proposal",
|
||||
"Proposal created successfully"
|
||||
it_behaves_like "documentable", "proposal", "proposal_path", { "id": "id" }
|
||||
|
||||
it_behaves_like "nested documentable",
|
||||
"proposal",
|
||||
"edit_proposal_path",
|
||||
{ "id": "id" },
|
||||
nil,
|
||||
"Save changes",
|
||||
"Proposal updated successfully"
|
||||
it_behaves_like "nested documentable",
|
||||
"proposal",
|
||||
"new_proposal_path",
|
||||
{ },
|
||||
"documentable_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"
|
||||
end
|
||||
scenario 'Erased author' do
|
||||
user = create(:user)
|
||||
proposal = create(:proposal, author: user)
|
||||
|
||||
Reference in New Issue
Block a user