Sha256: f7c745a0aee26afa7f80d3481a407af5dc8cd9bce5780457cd29300c9d21fe76
Contents?: true
Size: 406 Bytes
Versions: 2
Compression:
Stored size: 406 Bytes
Contents
require "administrate/field/globalize/string" describe Administrate::Field::Globalize::String do describe "#to_partial_path" do it "returns a partial based on the page being rendered" do page = :show field = Administrate::Field::Globalize::String.new(:name, "foo", page) path = field.to_partial_path expect(path).to eq("/fields/globalize/string/#{page}") end end end
Version data entries
2 entries across 2 versions & 2 rubygems