Sha256: 08caf5b7a7f8a7d352998ba4012b39079f000e1a035c2e206a02042558483318
Contents?: true
Size: 566 Bytes
Versions: 4
Compression:
Stored size: 566 Bytes
Contents
require "spec_helper" describe NPR::Entity::Crop do json_fixture do <<-JSON { "type": "enlargement", "src": "http://media.npr.org/assets/img/2012/12/14/121208bh0224-cb0bda2d8c5ec53151388f8a5faf3ddf12580434.jpg", "height": "2000", "width": "3000" } JSON end before :each do @crop = NPR::Entity::Crop.new(@fixture) end it "sets attributes" do @crop.type.should eq "enlargement" @crop.src.should match /media\.npr/ @crop.height.should eq 2000 @crop.width.should eq 3000 end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
npr-1.1.0 | spec/unit/entity/crop_spec.rb |
npr-0.1.2 | spec/unit/entity/crop_spec.rb |
npr-0.1.1 | spec/unit/entity/crop_spec.rb |
npr-0.1.0 | spec/unit/entity/crop_spec.rb |