Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bug in last commit

  • Loading branch information...
commit ecf2b1f91a538a5722fe2f04ba28c260762f5315 1 parent ad53abd
Gavin Sinclair authored
Showing with 10 additions and 0 deletions.
  1. +6 −0 lib/school_record.rb
  2. +4 −0 test/database.rb
6 lib/school_record.rb
View
@@ -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
4 test/database.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.