Merge pull request #638 from AyuntamientoMadrid/fix-random-test-fails

fixes some random test failures
This commit is contained in:
Enrique García
2015-10-23 12:58:46 +02:00
2 changed files with 8 additions and 3 deletions

View File

@@ -388,12 +388,16 @@ feature 'Commenting debates' do
within("#comment_#{@comment.id}_votes") do
find('.in_favor a').click
find('.in_favor a').click
within('.in_favor') do
expect(page).to have_content "1"
end
find('.in_favor a').click
within('.in_favor') do
expect(page).to_not have_content "2"
expect(page).to have_content "1"
end
within('.against') do
expect(page).to have_content "0"
end

View File

@@ -5,6 +5,7 @@ feature 'Stats' do
background do
admin = create(:administrator)
login_as(admin.user)
visit root_path
end
context 'Summary' do
@@ -68,4 +69,4 @@ feature 'Stats' do
expect(page).to have_content "Level 2 User (1)"
end
end
end