lib/active_mocker/mock/relation.rb in active_mocker-2.0.0.beta1 vs lib/active_mocker/mock/relation.rb in active_mocker-2.0.0.pre1
- old
+ new
@@ -1,18 +1,16 @@
module ActiveMocker
-module Mock
class Relation < Collection
-
include Queries
def initialize(collection=[])
super
@from_limit = false
end
def inspect
- entries = to_a.take(11).map!(&:inspect)
+ entries = to_a.take(11).map!(&:inspect)
entries[10] = '...' if entries.size == 11
"#<#{self.class.name} [#{entries.join(', ')}]>"
end
def from_limit?
@@ -24,7 +22,6 @@
def set_from_limit
@from_limit = true
end
end
-end
end
\ No newline at end of file