Sha256: b31893db5919163c1ca848a88660825ede219f90add3d8335acadd0e1f1ce32c
Contents?: true
Size: 398 Bytes
Versions: 54
Compression:
Stored size: 398 Bytes
Contents
require "administrate/field/active_storage" describe Administrate::Field::ActiveStorage do describe "#to_partial_path" do it "returns a partial based on the page being rendered" do page = :show field = Administrate::Field::ActiveStorage.new(:image, "/a.jpg", page) path = field.to_partial_path expect(path).to eq("/fields/active_storage/#{page}") end end end
Version data entries
54 entries across 54 versions & 2 rubygems