Skip to content

Commit 6519f5b

Browse files
committed
fixup! fixup! Replace mongo shell with mongosh
1 parent 27aa423 commit 6519f5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/acceptance/user_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class { 'mongodb::server': }
2323

2424
it 'creates the user' do
2525
shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r|
26-
expect(r.stdout.chomp).to eq('1')
26+
expect(r.stdout.chomp).to eq('{ ok: 1 }')
2727
end
2828
end
2929

@@ -131,7 +131,7 @@ class { 'mongodb::server': }
131131

132132
it 'allows the testuser' do
133133
shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r|
134-
expect(r.stdout.chomp).to eq('1')
134+
expect(r.stdout.chomp).to eq('{ ok: 1 }')
135135
end
136136
end
137137

@@ -143,7 +143,7 @@ class { 'mongodb::server': }
143143

144144
it 'allows the second user to connect to its default database' do
145145
shell("mongosh testdb2 --quiet --eval 'db.auth(\"testuser2\",\"passw0rd\")'") do |r|
146-
expect(r.stdout.chomp).to eq('1')
146+
expect(r.stdout.chomp).to eq('{ ok: 1 }')
147147
end
148148
end
149149

0 commit comments

Comments
 (0)