spec/support/models.rb in saviour-0.3.0 vs spec/support/models.rb in saviour-0.3.1
- old
+ new
@@ -1,8 +1,12 @@
+class Test < ActiveRecord::Base
+
+end
+
# Constant lookup in ruby works by lexical scope, so we can't create classes dynamically to test this.
-class TestForSaviourFileResolution
- include Saviour::BasicModel
+class TestForSaviourFileResolution < Test
+ include Saviour::Model
def foo
File.file?("/tasdasdasdmp/blabla.txt")
end
-end
\ No newline at end of file
+end