Skip to content

Commit de007bb

Browse files
committed
Adds specs to test Select All checkbox
1 parent d8dc43e commit de007bb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

spec/features/stories_manage_spec.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,21 @@
6868
expect(page).to have_content "Story updated!"
6969
end
7070

71+
it "allows me to select all stories" do
72+
visit project_path(id: project.id)
73+
check("Select All")
74+
75+
expect(page).to have_checked_field(name: "stories[]")
76+
end
77+
78+
it "allows me to unselect all stories" do
79+
visit project_path(id: project.id)
80+
check("Select All")
81+
uncheck("Select All")
82+
83+
expect(page).to have_unchecked_field(name: "stories[]")
84+
end
85+
7186
it "allows me to delete a story" do
7287
visit project_path(id: project.id)
7388

0 commit comments

Comments
 (0)