test for the json call
This commit is contained in:
parent
737ca012f0
commit
ae15b296ea
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue