Skip to content

Commit f95ab6c

Browse files
authored
Coverage: add coverage for last branch (#922)
1 parent c6de7e5 commit f95ab6c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

spec/requests/passwords_controller_spec.rb

+8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ def setup
1414
page = response.body
1515
expect(page).to have_tag("form#password_setup")
1616
end
17+
18+
it "redirects to the news path if setup is complete" do
19+
create(:user)
20+
21+
get "/setup/password"
22+
23+
expect(response).to redirect_to("/news")
24+
end
1725
end
1826

1927
describe "#create" do

spec/support/coverage.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
add_group("Utils", "app/utils")
1818
enable_coverage :branch
1919
end
20-
SimpleCov.minimum_coverage(line: 100, branch: 98)
20+
SimpleCov.minimum_coverage(line: 100, branch: 100)

0 commit comments

Comments
 (0)