Skip to content

Commit

Permalink
added spec for MysqlAdapterWithoutLock#initialize with verbose output
Browse files Browse the repository at this point in the history
  • Loading branch information
mwise committed Aug 1, 2014
1 parent 0873198 commit 0bbd105
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
it "successfully instantiates a working adapter" do
ActiveRecord::ConnectionAdapters::Mysql2AdapterWithoutLock.new(@adapter).should be_active
end

it "successfully instantiates a working adapter with verbose output" do
instance = ActiveRecord::ConnectionAdapters::Mysql2AdapterWithoutLock.new(@adapter, true)
instance.instance_variable_get(:@verbose).should be_true
end
end

context "#lock_none_statement" do
Expand Down Expand Up @@ -134,4 +139,4 @@
end
end
end
end
end

0 comments on commit 0bbd105

Please sign in to comment.