Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-27 11:20:28 +01:00
14 Zeilen
248 B
Ruby
14 Zeilen
248 B
Ruby
|
describe CustomWizard::Mapper do
|
||
|
|
||
|
it 'interpolates user data' do
|
||
|
user.name = "Angus"
|
||
|
user.save!
|
||
|
|
||
|
expect(
|
||
|
CustomWizard::Builder.fill_placeholders(
|
||
|
"My name is u{name}",
|
||
|
user,
|
||
|
{}
|
||
|
)
|
||
|
).to eq('My name is Angus')
|
||
|
end
|