google_reader 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/lib/google_reader/entry.rb +8 -0
- data/lib/google_reader/version.rb +1 -1
- data/spec/entry_spec.rb +12 -0
- metadata +1 -1
data/.gitignore
CHANGED
data/lib/google_reader/entry.rb
CHANGED
data/spec/entry_spec.rb
CHANGED
@@ -21,6 +21,18 @@ describe GoogleReader::Entry, "where the author is known, and the updated timest
|
|
21
21
|
GoogleReader::Entry.new(entry)
|
22
22
|
end
|
23
23
|
|
24
|
+
it "should be equal to itself" do
|
25
|
+
subject.should == subject
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should be equal to another entry instance with the same id" do
|
29
|
+
subject.should == GoogleReader::Entry.new(entry)
|
30
|
+
end
|
31
|
+
|
32
|
+
it "should have the same hash as another instance with the same id" do
|
33
|
+
subject.hash.should == GoogleReader::Entry.new(entry).hash
|
34
|
+
end
|
35
|
+
|
24
36
|
it "should HTML unescape the title" do
|
25
37
|
subject.title.should == "Find cheapest combination of rooms in hotels & other entries"
|
26
38
|
end
|