function context
  echo " $argv"
end

function it
  echo -n "  $argv..."
end

function pass
  set_color green
  echo PASS
  set_color normal
end

function fail
  set_color red
  echo FAIL
  set_color normal
end

function stub
  set -l out $argv
  set -l cmd $argv[1]
  set -e out[1]

  eval "function $cmd; echo $out; end"
end

set -l test_path (pwd)

set -e fry_auto_switch
set -xg fry_path $test_path/../share/fry
set -xg fry_rubies $test_path/dummy-rubies

. $fry_path/fry.fish

function context
  echo " $argv"
end

function it
  echo -n "  $argv..."
end

function pass
  set_color green
  echo PASS
  set_color normal
end

function fail
  set_color red
  echo FAIL
  set_color normal
end

function stub
  set -l out $argv
  set -l cmd $argv[1]
  set -e out[1]

  eval "function $cmd; echo $out; end"
end

set -e fry_auto_switch
set -xg fry_path $PWD/../share/fry
set -xg fry_rubies $PWD/dummy-rubies

. $fry_path/fry.fish

Use $PWD instead of (pwd)
Use $PWD instead of (pwd)

terlar/fry