test/autoconnect_test.rb in vanity-3.1.0 vs test/autoconnect_test.rb in vanity-4.0.0
- old
+ new
@@ -13,18 +13,18 @@
assert autoconnect == false
ENV['VANITY_DISABLED'] = nil
end
it "returns false if in assets:precompile rake task" do
- Rake.expects(:application).returns(stub(:top_level_tasks => ['assets:precompile']))
+ Rake.expects(:application).returns(stub(top_level_tasks: ['assets:precompile']))
autoconnect = Vanity::Autoconnect.should_connect?
assert autoconnect == false
end
end
describe ".schema_relevant?" do
it "returns true for database tasks" do
- Rake.expects(:application).returns(stub(:top_level_tasks => ['db:migrate']))
+ Rake.expects(:application).returns(stub(top_level_tasks: ['db:migrate']))
assert_equal true, Vanity::Autoconnect.schema_relevant?
end
end
-end
\ No newline at end of file
+end