spec/api_spec.rb in cloudinary-1.10.0 vs spec/api_spec.rb in cloudinary-1.10.1.pre.rc
- old
+ new
@@ -201,11 +201,12 @@
end
describe 'transformations' do
it "should allow listing transformations" do
transformations = @api.transformations()["transformations"]
- expect(transformations[0]).not_to be_empty
- expect(transformations[0]["used"]).to eq(true)
+ t0 = transformations[0]
+ expect(t0).not_to be_empty
+ expect(t0).to have_key("used")
end
it "should allow getting transformation metadata" do
transformation = @api.transformation(TEST_TRANSFOMATION)
expect(transformation).not_to be_blank