Created
November 26, 2008 01:46
-
-
Save adelcambre/29233 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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