Permalink
Browse files

Reordering the tests so the custom DB config runs last.

  • Loading branch information...
1 parent 9972ca2 commit 18bb0ec7c99319809440376d27ed8a7210e4a2ba @flavorjones flavorjones committed Sep 20, 2011
Showing with 8 additions and 7 deletions.
  1. +8 −7 spec/acts_as_fu_spec.rb
@@ -72,6 +72,7 @@ def self.awesome?; true end
describe "rebuilding the class" do
before(:each) do
+ create_models
5.times { Foo.create!(:name => "The WHIZ", :age => 100) }
end
@@ -131,6 +132,13 @@ class Foo::SubThing; end
end
+ describe "ActsAsFu.report!" do
+ it "has a log" do
+ create_models
+ ActsAsFu::Connection.log.should include("CREATE TABLE")
+ end
+ end
+
describe "custom DB config" do
attr_reader :db
@@ -155,11 +163,4 @@ class Foo::SubThing; end
system("rm -rf #{db}")
end
end
-
- describe "ActsAsFu.report!" do
- it "has a log" do
- create_models
- ActsAsFu::Connection.log.should include("CREATE TABLE")
- end
- end
end

0 comments on commit 18bb0ec

Please sign in to comment.