Sha256: d3a8f0251bb6786d60a2cc52af829cf46ab9a58d24004d779a5af3f9b103f3ee
Contents?: true
Size: 392 Bytes
Versions: 2
Compression:
Stored size: 392 Bytes
Contents
require "administrate/field/active_storage" describe Worker::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
worker-field-active_storage-0.2.0 | spec/lib/worker/field/active_storage_spec.rb |
worker-field-active_storage-0.1.0 | spec/lib/worker/field/active_storage_spec.rb |