Skip to content

Commit

Permalink
Adding line coverage testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Lussier authored and Lussier committed Jan 16, 2025
1 parent 4ae6c16 commit 27bc01a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/coverage
11 changes: 10 additions & 1 deletion spec/controllers/works_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,13 @@
expect(response).to render_template('works/new')
end
end
end

describe 'edit' do
render_views
it 'renders the edit partial' do
get :edit, params: { id: work['id'] }
expect(response).to render_template('works/edit')
expect(CGI.unescapeHTML(response.body)).to include(work['title'])
end
end
end

0 comments on commit 27bc01a

Please sign in to comment.