spec/unit/entity/crop_spec.rb in npr-1.1.0 vs spec/unit/entity/crop_spec.rb in npr-1.2.0
- old
+ new
@@ -9,14 +9,14 @@
"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