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