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
4b8b4b91
Commit
4b8b4b91
authored
Jan 17, 2015
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improves text of tests
parent
0bfb95a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
plugins/bak/spec/bak.spec.fish
plugins/bak/spec/bak.spec.fish
+8
-8
plugins/fish-spec/spec/spec.spec.fish
plugins/fish-spec/spec/spec.spec.fish
+1
-1
spec/oh-my-fish.spec.fish
spec/oh-my-fish.spec.fish
+1
-1
No files found.
plugins/bak/spec/bak.spec.fish
View file @
4b8b4b91
import plugins/bak
import plugins/fish-spec
function describe_bak
-d 'Testing bak plugin'
function describe_bak
_plugin
function before_all
set -g test_dir /tmp/bak_test
mkdir -p $test_dir
...
...
@@ -18,13 +18,13 @@ function describe_bak -d 'Testing bak plugin'
popd
end
function it_checks_bak_filename_pattern_is_followed
function it_checks_
if_
bak_filename_pattern_is_followed
expect __is_bak '.ccnet.20140817_234302.bak' --to-be-true
expect __is_bak 'file\ with\ spaces.20140817_234302.bak' --to-be-true
expect __is_bak '.ccnet.bak' --to-be-false
end
function it_normalizes_file_name
function it_normalizes_
the_
file_name
expect (__bak_normalized '.ccnet.20140817_234302.bak') --to-equal '.ccnet'
expect (__bak_normalized 'file with spaces.20140817_234302.bak') --to-equal 'file with spaces'
end
...
...
@@ -44,7 +44,7 @@ function describe_bak -d 'Testing bak plugin'
end
end
function it_un
moves
_a_single_file
function it_un
do_moves_of
_a_single_file
touch a
mvbak a
unmvbak (ls)
...
...
@@ -52,7 +52,7 @@ function describe_bak -d 'Testing bak plugin'
expect (ls) --to-equal a
end
function it_un
moves
_multiple_files
function it_un
do_moves_of
_multiple_files
set files (seq 4)
touch $files
mvbak $files
...
...
@@ -80,7 +80,7 @@ function describe_bak -d 'Testing bak plugin'
expect (ls) --to-contain $files $file_bak
end
function it_un
copies
_a_single_file
function it_un
do_copies_of
_a_single_file
touch a
cpbak a
rm a
...
...
@@ -89,7 +89,7 @@ function describe_bak -d 'Testing bak plugin'
expect (ls) --to-contain (echo 'a'\n(__bak_name a))
end
function it_un
copies
_multiple_files
function it_un
do_copies_of
_multiple_files
set files (seq 4)
touch $files
mvbak $files
...
...
@@ -98,7 +98,7 @@ function describe_bak -d 'Testing bak plugin'
expect (ls) --to-equal "$files"
end
function it_un
copies
_a_directory
function it_un
do_copies_of
_a_directory
mkdir a
cpbak a/
rmdir a
...
...
plugins/fish-spec/spec/spec.spec.fish
View file @
4b8b4b91
import plugins/fish-spec
function describe_fish-spec
-d "Fish-Spec"
function describe_fish-spec
function it_has_an_output_if_suite_is_blank
set -l suite "
import plugins/fish-spec
...
...
spec/oh-my-fish.spec.fish
View file @
4b8b4b91
import plugins/fish-spec
function describe_oh_my_fish
-d "Oh-My-Fish test spec..."
function describe_oh_my_fish
function before_all
set -g fish_custom_bak $fish_custom
set -g fish_plugins_bak $fish_plugins
...
...
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