Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
4cb65391
Commit
4cb65391
authored
Jun 11, 2014
by
Roman Inflianskas
Committed by
Bruno Pinto
Nov 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dpaste] Add tests
parent
32c1a026
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
plugins/dpaste/tests/helper.fish
plugins/dpaste/tests/helper.fish
+7
-0
plugins/dpaste/tests/test_dpaste.fish
plugins/dpaste/tests/test_dpaste.fish
+23
-0
No files found.
plugins/dpaste/tests/helper.fish
0 → 100644
View file @
4cb65391
set -l fish_tank /usr/local/share/fish-tank/tank.fish
if not test -e $fish_tank
echo 'error: fish-tank is required to run these tests (https://github.com/terlar/fish-tank)'
exit 1
end
source $fish_tank
plugins/dpaste/tests/test_dpaste.fish
0 → 100755
View file @
4cb65391
#!/usr/bin/env fish
function suite_dpaste
function setup
set -g __dpaste_expires_choises
source ../dpaste.fish
__dpaste_set_defaults
end
function test_dpaste_parse_expires
assert_equal text (__dpaste_parse_expires text)
assert_equal "https://dpaste.de/api/?format=url" $__dpaste_send_url
assert_equal text (__dpaste_parse_expires -t never text)
assert_equal "https://dpaste.de/api/?format=url&expires=never" $__dpaste_send_url
assert_equal text (__dpaste_parse_expires -t hour 3600)
assert_equal "https://dpaste.de/api/?format=url&expires=" $__dpaste_send_url
end
end
if not set -q tank_running
source (dirname (status -f))/helper.fish
tank_run
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment