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

13 Zeilen
326 B
Ruby

2020-10-20 01:15:03 +02:00
describe CustomWizard::Mapper do
fab!(:user) { Fabricate(:user, name: 'Angus', username: 'angus', email: "angus@email.com") }
it 'interpolates user data' do
expect(
CustomWizard::Mapper.fill_placeholders(
"My name is u{name}",
user,
{}
)
).to eq('My name is Angus')
end
end