Sha256: 5c0411e5e5a264877a2c962ecf9d2ee3f10b04307a481b6b86c8d4075c46287d

Contents?: true

Size: 371 Bytes

Versions: 3

Compression:

Stored size: 371 Bytes

Contents

require "administrate/field/froala"

describe Administrate::Field::Froala do
  describe "#to_partial_path" do
    it "returns a partial based on the page being rendered" do
      page = :show
      field = Administrate::Field::Froala.new(:relation, "/a.jpg", page)

      path = field.to_partial_path

      expect(path).to eq("/fields/froala/#{page}")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
administrate-field-froala-0.1.4 spec/lib/administrate/field/froala_spec.rb
administrate-field-froala-0.1.3 spec/lib/administrate/field/froala_spec.rb
administrate-field-froala-0.1.2 spec/lib/administrate/field/froala_spec.rb