Skip to content

Commit a293295

Browse files
committed
extended specs
1 parent c4934b2 commit a293295

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spec/all.rb

+5-3
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@
3737
end
3838

3939
it "can run mysql query through build in mysql client" do
40-
# TODO: bug revealed - the apt-get install in this, when no volume is attached, already populated the system tables
40+
stdout, stderr = @container.exec(['bash', '-c', 'mysql -e "show databases;"'])
41+
expect(stderr.first).to_not match(/Access denied for user/)
4142

42-
query_result = @container.exec(['bash', '-c', 'mysql -e "show databases;"'])
43-
expect(query_result[1][0]).to_not match(/Access denied for user/)
43+
expect(stdout.first).to match(/mysql/)
44+
expect(stdout.first).to match(/information_schema/)
45+
expect(stdout.first).to_not match(/test/)
4446
end
4547

4648
after(:all) do

0 commit comments

Comments
 (0)