Skip to content

Instantly share code, notes, and snippets.

@adelcambre
Created November 26, 2008 01:46
Show Gist options
  • Save adelcambre/29233 to your computer and use it in GitHub Desktop.
Save adelcambre/29233 to your computer and use it in GitHub Desktop.
diff --git a/spec/mysql_server_spec.rb b/spec/mysql_server_spec.rb
index dcb8a4c..7637c23 100644
--- a/spec/mysql_server_spec.rb
+++ b/spec/mysql_server_spec.rb
@@ -1,4 +1,5 @@
MOUNT_POINT = File.expand_path(File.dirname(__FILE__) + '/../mount')
+require File.dirname(__FILE__) + '/spec_helper'
require 'fileutils'
describe "A mysql server" do
@@ -44,12 +45,13 @@ describe "A mysql server" do
describe "removing a database" do
before(:each) do
@m.install_on(@s)
- @m.remove_db_on("mysql", @s)
+ @m.create_db_on("test", @s)
+ @m.remove_db_on("test", @s)
end
it "does not have the database anymore" do
output = @m.list_on(@s)
- output.should == ""
+ output.should == "mysql"
end
end
end
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index c2e9f44..8981db9 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,3 +1,6 @@
+require 'rubygems'
+require 'spec'
+
require File.dirname(__FILE__) + '/../lib/slice'
require File.dirname(__FILE__) + '/../lib/mysql_server'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment