Daniel Colson
5f1a1de114
Run standardrb
...
This commit applies the changes from running `standardrb --fix`
2020-06-10 17:11:39 -04:00
Daniel Colson
102d7f7606
Prepare for factory_bot 6
...
Closes #1336
* removes all the deprecated methods
* removes Ruby 2.3, 2.4 and Rails 4.2 from travis
* bundle updates the test gemfiles
* Removes some pre-5.0 logic from a test helper
* Targets Ruby 2.5 with rubocop and fixes violations
We could also remove support for Rails 5.0 and 5.1, which are now EOL,
but I don't see a strong reason to do that. We don't seem to have to do
anything special to support those versions.
2020-05-01 17:43:10 -04:00
Oliver Peate
05bf5a3713
Use sqlite in-memory DB in specs
...
https://www.sqlite.org/inmemorydb.html
2019-08-01 10:31:46 +01:00
Susan Wright
c22c9ab052
Rubocop: Fix Style/StringLiterals Offenses ( #1216 )
2018-10-07 21:45:51 -04:00
Hunter Braun
89ee4a4524
[Rubocop] Style Cop Offenses ( #1208 )
2018-10-07 18:02:54 -04:00
Josh Clayton
f48b90a95a
Update migration base class to work with new versions of Rails ( #1041 )
...
What?
=====
Rails' migrations now support versioning; this updates the superclass to
conditionally swap based on versions of Rails to remove a deprecation
warning.
2017-09-28 09:31:29 -04:00
Joshua Clayton
e9d9e3099b
Prep for FactoryGirl 4.0
2012-08-02 11:17:39 -04:00
Chris Griego
81c9f2c3dd
Make step definitions more ORM agnostic by preferring .attribute_names
...
Support for .attribute_names
* ActiveRecord starting in v3.1.0
* ActiveAttr starting in v0.5.0
2012-03-30 11:39:13 -04:00
Erik Ostrom
34c1bf9b70
Let Cucumber steps use inherited associations.
...
By making Factory#associations include the parent's associations.
https://github.com/thoughtbot/factory_girl/issues/292
2012-02-08 00:08:37 -05:00
Dmytrii Nagirniak
5246fdad26
added spec to support ORMs with 'simple columns' (Neo4j)
2012-01-13 11:33:02 -05:00
Joshua Clayton
05ddd3d6b5
Only strip strings in step definitions
...
This allows for cucumber transforms to create different data structrues
and still work with factory girl steps.
Closes #185
2011-08-22 13:16:32 -04:00
Joshua Clayton
9c4818a095
Handle aliases within the step definitions
2011-06-30 18:27:25 -04:00
Joe Ferris
c59981de1b
Split factories/sequences into separate registries most of the time;
...
Only use factories from step definitions
2011-05-25 20:08:59 -04:00
Fernando Ultremare
1b28476713
Allow recursive associations from cucumber table arguments
2010-11-05 10:27:49 -04:00
Joshua Clayton
2cfc4813fa
Cucumber step definitions with blank association columns work intelligently
2010-03-29 17:48:19 -04:00
Joe Ferris
da51a4e48d
Fixes for step definitions involving factories with underscores
2009-09-15 18:14:34 -04:00
Joe Ferris
db6c46a101
Added alternate formatting for step definitions
2009-09-15 17:58:23 -04:00
Joe Ferris
33b61c3bfb
Fixed issues with some attributes being skipped and added support for linked associations in step definitions
2009-09-15 16:56:20 -04:00
Joe Ferris
760a165b2e
Added step definitions for cucumber
2009-09-15 15:47:47 -04:00