Gherkin extension for RSpec
Turnip::Builder::XXX
=== Gherkin::Ast::XXX
placeholder :user_name do
match /admin: (.*)/ do |user_name|
User.find_by!(name: user_name, role: :admin)
end
default do |user_name|
User.find_by!(name: user_name)
end
end
Changes for RSpec support version. [GH-158]
Example If the latest version is 3.4.x
:
3.4.x
3.3.x
3.2.x
3.1.x
2.x.y
Support for RSpec 3.3.x [GH-157]
--pattern
option is specified [GH-143] [GH-144]
[GH-133]
Apply if you set below:
RSpec.configure do |config|
config.raise_error_for_unimplemented_steps = true
end
[GH-139]
Previous output:
A simple feature
This is a simple feature
there is a monster -> I attack it -> it should die
New output:
A simple feature
This is a simple feature
Given there is a monster -> When I attack it -> Then it should die
[GH-140]
Previous version:
placeholder :password do
match /valid/ do
'[email protected]'
end
end
placeholder :confirmation_password do
match /valid/ do
'[email protected]' # same ...
end
end
New version:
placeholder :password, :confirmation_password do
match /valid/ do
'[email protected]'
end
end
For backtrace: