test for the json call

This commit is contained in:
Torsten Ruger 2017-06-11 23:02:11 +03:00
parent 737ca012f0
commit ae15b296ea
2 changed files with 12 additions and 1 deletions

View File

@ -1 +1,4 @@
json.extract! @resume, :id, :school, :uni, :internship, :work, :tech_skills, :soft_skills, :projects, :other, :interests, :motivation, :user_id, :created_at, :updated_at
json.extract! @resume, :id, :school, :uni, :internship, :work,
:tech_skills, :soft_skills, :projects, :other,
:interests, :motivation, :finance ,
:user_id, :created_at, :updated_at

View File

@ -12,6 +12,14 @@ feature 'Resume edit' do
expect(page).to have_content("Resume")
end
scenario 'progress json call works' do
user = sign_new
visit resume_path(format: :json)
user.resume.percent_attributes.each do |name|
expect(page).to have_content(name)
end
end
scenario "progress works" do
sign_new
visit_url progress_resume_url()