File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- # This script was generated by bashly (https://github.com/DannyBen/ bashly)
2+ # This script was generated by bashly <%= Bashly::VERSION %> (https://bashly.dannyb.co )
33# Modifying it manually is not recommended
44
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- # This script was generated by bashly (https://github.com/DannyBen/ bashly)
2+ # This script was generated by bashly ... (https://bashly.dannyb.co )
33# Modifying it manually is not recommended
44
55# :script.wrapper
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- # This script was generated by bashly (https://github.com/DannyBen/ bashly)
2+ # This script was generated by bashly ... (https://bashly.dannyb.co )
33# Modifying it manually is not recommended
44
55# :script.bash3_bouncer
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- # This script was generated by bashly (https://github.com/DannyBen/ bashly)
2+ # This script was generated by bashly ... (https://bashly.dannyb.co )
33# Modifying it manually is not recommended
44
55# :script.wrapper
Original file line number Diff line number Diff line change 7979 expect { subject . run %w[ generate -w function ] } . to output_approval ( 'cli/generate/wrap-function' )
8080 expect ( File ) . to exist ( cli_script )
8181 lines = File . readlines cli_script
82- expect ( lines [ 0 ..10 ] . join ) . to match_approval ( 'cli/generate/wrap-script' )
82+ expect ( lines [ 0 ..10 ] . join ) . to match_approval ( 'cli/generate/wrap-script' ) . except ( / \d + \. \d + \. \d +/ )
8383 end
8484 end
8585
Original file line number Diff line number Diff line change 1010 context "without function name" do
1111 it "returns the complete script" do
1212 lines = subject . code . split "\n "
13- expect ( lines [ 0 ..12 ] . join ( "\n " ) ) . to match_approval ( 'script/wrapper/code' )
13+ expect ( lines [ 0 ..12 ] . join ( "\n " ) ) . to match_approval ( 'script/wrapper/code' ) . except ( / \d + \. \d + \. \d +/ )
1414 expect ( lines [ -1 ] ) . to eq 'run "$@"'
1515 end
1616 end
2020
2121 it "returns the complete script wrapped in a function without a bash3 bouncer" do
2222 lines = subject . code . split "\n "
23- expect ( lines [ 0 ..12 ] . join ( "\n " ) ) . to match_approval ( 'script/wrapper/code-wrapped' )
23+ expect ( lines [ 0 ..12 ] . join ( "\n " ) ) . to match_approval ( 'script/wrapper/code-wrapped' ) . except ( / \d + \. \d + \. \d +/ )
2424 expect ( lines [ -1 ] ) . to eq '(return 0 2>/dev/null) || my_super_function "$@"'
2525 end
2626 end
You can’t perform that action at this time.
0 commit comments