66
77$isUnix = is_unix
88
9- describe " ensure_architecture" {
9+ describe " ensure_architecture" - Tag ' Scoop ' {
1010 it " should keep correct architectures" {
1111 ensure_architecture " 32bit" | Should be " 32bit"
1212 ensure_architecture " 32" | Should be " 32bit"
@@ -37,13 +37,13 @@ describe "ensure_architecture" {
3737 }
3838}
3939
40- describe " appname_from_url" {
40+ describe " appname_from_url" - Tag ' Scoop ' {
4141 it " should extract the correct name" {
4242 appname_from_url " https://example.org/directory/foobar.json" | Should be " foobar"
4343 }
4444}
4545
46- describe " url_filename" {
46+ describe " url_filename" - Tag ' Scoop ' {
4747 it " should extract the real filename from an url" {
4848 url_filename " http://example.org/foo.txt" | Should be " foo.txt"
4949 url_filename " http://example.org/foo.txt?var=123" | Should be " foo.txt"
@@ -54,7 +54,7 @@ describe "url_filename" {
5454 }
5555}
5656
57- describe " url_remote_filename" {
57+ describe " url_remote_filename" - Tag ' Scoop ' {
5858 it " should extract the real filename from an url" {
5959 url_remote_filename " http://example.org/foo.txt" | Should be " foo.txt"
6060 url_remote_filename " http://example.org/foo.txt?var=123" | Should be " foo.txt"
@@ -65,7 +65,7 @@ describe "url_remote_filename" {
6565 }
6666}
6767
68- describe " is_in_dir" {
68+ describe " is_in_dir" - Tag ' Scoop ' {
6969 it " should work correctly" - skip:$isUnix {
7070 is_in_dir " C:\test" " C:\foo" | Should be $false
7171 is_in_dir " C:\test" " C:\test\foo\baz.zip" | Should be $true
@@ -75,7 +75,7 @@ describe "is_in_dir" {
7575 }
7676}
7777
78- describe " env add and remove path" {
78+ describe " env add and remove path" - Tag ' Scoop ' {
7979 # test data
8080 $manifest = @ {
8181 " env_add_path" = @ (" foo" , " bar" )
@@ -101,7 +101,7 @@ describe "env add and remove path" {
101101 }
102102}
103103
104- describe " shim_def" {
104+ describe " shim_def" - Tag ' Scoop ' {
105105 it " should use strings correctly" {
106106 $target , $name , $shimArgs = shim_def " command.exe"
107107 $target | Should be " command.exe"
@@ -122,7 +122,7 @@ describe "shim_def" {
122122 }
123123}
124124
125- describe ' persist_def' {
125+ describe ' persist_def' - Tag ' Scoop ' {
126126 it ' parses string correctly' {
127127 $source , $target = persist_def " test"
128128 $source | Should be " test"
@@ -153,7 +153,7 @@ describe 'persist_def' {
153153 }
154154}
155155
156- describe ' compute_hash' {
156+ describe ' compute_hash' - Tag ' Scoop ' {
157157 beforeall {
158158 $working_dir = setup_working " manifest"
159159 }
0 commit comments