-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous commit failed to account for the case where `#find_by_sql` returns no results.
- Loading branch information
1 parent
abf6a42
commit 189693b
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,6 +92,12 @@ class Export < ArtVandelayTest | |
) | ||
end | ||
|
||
test "it does not create a CSV when passed an empty Array" do | ||
result = ArtVandelay::Export.new([]).csv | ||
|
||
assert_empty result.csv_exports | ||
end | ||
|
||
test "it controlls what data is filtered" do | ||
user = User.create!(email: "[email protected]", password: "password") | ||
ArtVandelay.setup do |config| | ||
|