1
0
Fork 0
discourse-custom-wizard-unl.../spec/components/custom_wizard/mapper_spec.rb

14 Zeilen
248 B
Ruby

2020-04-11 08:22:12 +02:00
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