Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit 68b5fd8

Browse files
committed
Simplify special tags test.
1 parent 9c022a0 commit 68b5fd8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
Given(/^I want to download images from (\S+) with special tag and save them using (.*)$/) do |board, pattern|
22
@tag = SPECIAL_MATRIX[board]
3-
limits = [
4-
"-l per_page=#{PER_PAGE} -l pages=#{PAGES}",
5-
"-l posts=#{POSTS_COUNT}"
6-
]
3+
74
filenames = pattern == "default pattern" ? "" : "-f #{pattern}"
85

9-
@cmd = "ruby danbooru.rb #{limits.sample} #{filenames} -b #{board} #{@tag}"
6+
@cmd = "ruby danbooru.rb -l posts=#{POSTS_COUNT} #{filenames} -b #{board} #{@tag}"
107
end

0 commit comments

Comments
 (0)