spec/unit/entity/formats_spec.rb in npr-1.1.0 vs spec/unit/entity/formats_spec.rb in npr-1.2.0
- old
+ new
@@ -21,21 +21,21 @@
"$text": "rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/totn/2012/12/20121214_totn_01.mp3"
}
}
JSON
end
-
+
before :each do
@formats = NPR::Entity::Formats.new(@fixture)
end
-
+
it "sets up attributes" do
@formats.wm.should match /npr\.org/
@formats.rm.should eq nil
@formats.mediastream.should match /flash/
end
-
+
it "creates relations" do
@formats.mp3s.size.should eq 2
@formats.mp3s.first.should be_a NPR::Entity::MP3
end
-end
\ No newline at end of file
+end