adds specs for tracking level 2 users

This commit is contained in:
rgarcia
2015-09-10 11:03:59 +02:00
parent a8edad2ab6
commit e1d708dc1f
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
require 'rails_helper'
feature 'Stats' do
scenario 'Level 2 user', :focus do
admin = create(:administrator)
user = create(:user)
login_as(user)
visit account_path
click_link 'Verify my account'
verify_residence
confirm_phone
login_as(admin.user)
visit stats_path
expect(page).to have_content "Level 2 User (1)"
end
end