13 Zeilen
326 B
Ruby
13 Zeilen
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
|