Skip to content

Commit

Permalink
Merge 3b6b217 into a017e77
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-voronenko committed Nov 20, 2017
2 parents a017e77 + 3b6b217 commit fd3b257
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,7 @@
### New Features

### Bug-fixes
- [#248](https://github.com/strongqa/howitzer/issues/248) FactoryGirl renamed to FactoryBot in cucumber transformation.

## [v2.1.0](https://github.com/strongqa/howitzer/compare/v2.0.3...v2.1.0)

Expand Down
2 changes: 1 addition & 1 deletion generators/cucumber/templates/transformers.rb
Expand Up @@ -17,7 +17,7 @@
name: 'factory',
regexp: /(?:factory|FACTORY)_([A-Za-z_]+)(\d*)(?:\[\:(.+)\])?/,
transformer: lambda do |_, factory, num, property|
res = FactoryGirl.given_by_number(factory.downcase, num)
res = FactoryBot.given_by_number(factory.downcase, num)
res = res.send(property) if property
res
end
Expand Down

0 comments on commit fd3b257

Please sign in to comment.