Sha256: e0ec935a08ed3cb2412cfce6e39e299efe63cce715d23072a959baf020e4b2d2
Contents?: true
Size: 471 Bytes
Versions: 4
Compression:
Stored size: 471 Bytes
Contents
require "spec_helper" describe NPR::Entity::Enlargement do json_fixture do <<-JSON { "src": "http://media.npr.org/assets/img/2012/12/14/121208bh0224-cb0bda2d8c5ec53151388f8a5faf3ddf12580434.jpg", "caption": {} } JSON end before :each do @enlargement = NPR::Entity::Enlargement.new(@fixture) end it "sets attributes" do @enlargement.src.should match /media\.npr/ @enlargement.caption.should eq "" end end
Version data entries
4 entries across 4 versions & 1 rubygems