Permalink
Browse files

Fixed bug in last commit

  • Loading branch information...
1 parent ad53abd commit ecf2b1f91a538a5722fe2f04ba28c260762f5315 @gsinclair committed Jan 28, 2012
Showing with 10 additions and 0 deletions.
  1. +6 −0 lib/school_record.rb
  2. +4 −0 test/database.rb
View
6 lib/school_record.rb
@@ -1,6 +1,12 @@
require 'debuglog'
require 'pry'
+class Object
+ def in?(collection)
+ collection.include? self
+ end
+end
+
module SchoolRecord
# All contents defined in other files.
end
View
4 test/database.rb
@@ -30,6 +30,10 @@
Eq notes.first.text, "Assignment not submitted"
Eq notes.last.student.fullname, "Anna Burke"
Eq notes.last.text, "Good work on board"
+ notes = @db.notes('11', 'ABur')
+ Eq notes.size, 1
+ Eq notes.first.student.fullname, "Anna Burke"
+ Eq notes.first.text, "Good work on board"
end
end
end

0 comments on commit ecf2b1f

Please sign in to comment.