1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
Feature: Nested Steps in I18n
Background:
Given a scenario with a step that looks like this in japanese:
"""gherkin
前提 two turtles
"""
And a step definition that looks like this:
"""ruby
# -*- coding: utf-8 -*-
前提 /a turtle/ do
puts "turtle!"
end
"""
Scenario: Use #steps to call several steps at once
Given a step definition that looks like this:
"""ruby
# -*- coding: utf-8 -*-
前提 /two turtles/ do
steps %{
前提 a turtle
かつ a turtle
}
end
"""
When I run the feature with the progress formatter
Then the output should contain:
"""
turtle!
turtle!
"""
|