Changes tests
This commit is contained in:
@@ -17,10 +17,10 @@ feature 'Stats' do
|
||||
|
||||
visit admin_stats_path
|
||||
|
||||
expect(page).to have_content "Debates: 1"
|
||||
expect(page).to have_content "Proposals: 2"
|
||||
expect(page).to have_content "Comments: 3"
|
||||
expect(page).to have_content "Visits: 4"
|
||||
expect(page).to have_content "Debates 1"
|
||||
expect(page).to have_content "Proposals 2"
|
||||
expect(page).to have_content "Comments 3"
|
||||
expect(page).to have_content "Visits 4"
|
||||
end
|
||||
|
||||
scenario 'Votes' do
|
||||
@@ -35,10 +35,10 @@ feature 'Stats' do
|
||||
|
||||
visit admin_stats_path
|
||||
|
||||
expect(page).to have_content "Debate votes: 1"
|
||||
expect(page).to have_content "Proposal votes: 2"
|
||||
expect(page).to have_content "Comment votes: 3"
|
||||
expect(page).to have_content "Total votes: 6"
|
||||
expect(page).to have_content "Debate votes 1"
|
||||
expect(page).to have_content "Proposal votes 2"
|
||||
expect(page).to have_content "Comment votes 3"
|
||||
expect(page).to have_content "Total votes 6"
|
||||
end
|
||||
|
||||
scenario 'Users' do
|
||||
@@ -54,11 +54,11 @@ feature 'Stats' do
|
||||
|
||||
visit admin_stats_path
|
||||
|
||||
expect(page).to have_content "Level three users: 1"
|
||||
expect(page).to have_content "Level two users: 2"
|
||||
expect(page).to have_content "Verified users: 3"
|
||||
expect(page).to have_content "Unverified users: 4"
|
||||
expect(page).to have_content "Total users: 7"
|
||||
expect(page).to have_content "Level three users 1"
|
||||
expect(page).to have_content "Level two users 2"
|
||||
expect(page).to have_content "Verified users 3"
|
||||
expect(page).to have_content "Unverified users 4"
|
||||
expect(page).to have_content "Total users 7"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user