spec/stratify-itunes/integration_spec.rb in stratify-itunes-0.1.4.1 vs spec/stratify-itunes/integration_spec.rb in stratify-itunes-0.1.4.2
- old
+ new
@@ -71,9 +71,13 @@
end
it "does not collect unplayed items from iTunes" do
Stratify::ITunes::Activity.where(:persistent_id => "8780A3C7A0117B2B").should_not exist
end
+
+ it "gracefully ignores 'played' items that have no 'last played at' timestamp" do
+ Stratify::ITunes::Activity.where(:persistent_id => "87AD381B6216E628").should_not exist
+ end
end
describe "reading a remote iTunes library file", :database => true do
use_vcr_cassette "itunes"