File tree Expand file tree Collapse file tree 4 files changed +24
-2
lines changed
Expand file tree Collapse file tree 4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 33
44# Rivet Changelog
55
6+ ## 0.21.1
7+
8+ > Released 24 May 2023
9+
10+ ### Fixed
11+
12+ * Fixed: ` Connect-RivetSession ` no longer returns errant boolean values.
13+
14+
615## 0.21.0
716
817> Released 24 May 2023
Original file line number Diff line number Diff line change @@ -28,6 +28,6 @@ function Connect-RivetSession
2828
2929 foreach ($db in $databasesToConnect )
3030 {
31- Connect-Database - Session $Session - Name $db
31+ Connect-Database - Session $Session - Name $db | Out-Null
3232 }
3333}
Original file line number Diff line number Diff line change 1111 RootModule = ' Rivet.psm1'
1212
1313 # Version number of this module.
14- ModuleVersion = ' 0.21.0 '
14+ ModuleVersion = ' 0.21.1 '
1515
1616 # ID used to uniquely identify this module
1717 GUID = ' 8af34b47-259b-4630-a945-75d38c33b94d'
Original file line number Diff line number Diff line change @@ -54,4 +54,17 @@ Describe 'Connect-RivetSession' {
5454
5555 ThenNoErrors
5656 }
57+
58+ It ' should return null after successfully connecting to a database' {
59+ Start-RivetTest - PhysicalDatabase @ ($RTDatabaseName , $RTDatabase2Name )
60+ $RTSession.Connection.Database | Should - Be $RTDatabaseName
61+ $RTSession.CurrentDatabase.Name | Should - Be $RTDatabaseName
62+
63+ $result = WhenConnectingRivet - Database $RTDatabase2Name
64+ $RTSession.Connection.Database | Should - Be $RTDatabase2Name
65+ $RTSession.CurrentDatabase.Name | Should - Be $RTDatabase2Name
66+
67+ $result | Should - BeNullOrEmpty
68+ ThenNoErrors
69+ }
5770}
You can’t perform that action at this time.
0 commit comments