0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-14 22:02:53 +01:00
discourse-custom-wizard/spec/components/custom_wizard/mapper_spec.rb
Angus McLeod d8fd5cb258 various
2020-04-11 16:22:12 +10:00

14 Zeilen
Kein EOL
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