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
74e60036
Commit
74e60036
authored
Feb 19, 2015
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import tests
parent
b0f435f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
spec/import.spec.fish
spec/import.spec.fish
+42
-0
No files found.
spec/import.spec.fish
0 → 100644
View file @
74e60036
import plugins/fish-spec
function describe_import
function before_all
set -g fish_function_path_bak $fish_function_path
list.erase "$fish_path/plugins/archlinux" --from fish_function_path
list.erase "$fish_path/plugins/git-flow" --from fish_function_path
list.erase "$fish_path/plugins/tiny" --from fish_function_path
end
function after_all
set fish_function_path $fish_function_path_bak
end
function it_imports_all_fish_files
import plugins/tiny
expect $fish_function_path --to-contain-all $fish_path/plugins/tiny
end
function it_imports_all_fish_files_recursively
import plugins/archlinux
expect $fish_function_path --to-contain-all $fish_path/plugins/archlinux/pacman
end
function it_does_not_import_test_files
import plugins/tiny
expect $fish_function_path --to-not-contain-all $fish_path/plugins/spec
end
function it_does_not_import_completion_files
import plugins/git-flow
expect $fish_function_path --to-not-contain-all $fish_path/plugins/git-flow/completions/
end
function it_adds_completion_files_to_completion_path
import plugins/git-flow
expect $fish_complete_path --to-contain-all $fish_path/plugins/git-flow/completions
end
end
spec.run $argv
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