lib/test_dummy.rb in test_dummy-0.2.4 vs lib/test_dummy.rb in test_dummy-0.2.5
- old
+ new
@@ -211,10 +211,10 @@
model
end
protected
def load_dummy_declaration!
- return if (defined?(@_dummy_module))
+ return unless (@_dummy_module.nil?)
@_dummy_module =
begin
dummy_path = File.expand_path("test/dummy/#{name.underscore}.rb", Rails.root)