Skip to content

Commit

Permalink
spec fix: don't use let definition in before(:all)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronen committed Mar 20, 2013
1 parent 463d385 commit a5da674
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/named_schemas_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "with multiple schemas" do
let (:connection) { ActiveRecord::Base.connection }
def connection
ActiveRecord::Base.connection
end

before(:all) do
newdb = case connection.adapter_name
Expand Down

0 comments on commit a5da674

Please sign in to comment.