Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-29 20:20:29 +01:00
13 Zeilen
Kein EOL
326 B
Ruby
13 Zeilen
Kein EOL
326 B
Ruby
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 |