Commit Graph

19 Commits

Author SHA1 Message Date
David Rodríguez 0204be12a2 Renable generator tests 2017-02-23 13:18:59 -03:00
Luciano Sousa 447816cf10 update rspec syntax to the new one 2016-06-09 18:49:42 -03:00
Jeff Casimir d0149b1c8f Rewrite some of the .stub calls to use allow 2015-03-26 23:21:37 -06:00
Jeff Casimir d4cca57c0f Debugging mini_test vs minitest across versions is a waste of time 2015-03-26 21:30:52 -06:00
Michael Dao 5b7d4aff9a Removed some deprecated Rspec syntax 2015-03-08 19:26:39 -06:00
Azul cd4f298987 hook in generator from controller generator
* use hook instead of invoke so it's easy to configure
* hook into controller_generator and scaffold_controller_generator
  This feels more natural than invoking from the resource generator.

Decorators are closely related to controllers, views and helpers.
So they should be generated in that context.
If controller generation is disabled for say generating resources there
is no point in creating decorators.
2013-06-07 21:42:50 +02:00
Andrew Haines 9ad833b475 Fix build failure
rspec-rails 2.13.1 checks Rails.version when loading RailsExampleGroup
which is used by ammeter. Therefore we need to require rails.
2013-04-29 15:08:47 +01:00
Andrew Haines cbe62c03e4 Uncomment accidentally-commented line 😊 2013-02-12 08:44:14 +00:00
Andrew Haines e0df75d719 Fix ApplicationDecorator usage in generator
Closes #456
2013-02-05 11:24:40 +00:00
Andrew Haines 2bfa25a5ad Revamp specs
* Use the new `expect().to` syntax
* Avoid general fixtures by minimizing usage of `let` and `subject`
* Define as few support classes as possible, and use them for name
  lookup only - all behavior is introduced by stubbing
2013-01-17 12:47:25 +00:00
Andrew Haines 1fac02b65b Add MiniTest generators 2013-01-14 11:57:06 +00:00
Andrew Haines eca41450ce Reorganise test integration
Adds compatibility with minitest-rails 0.5
2013-01-12 16:28:37 +00:00
Pete Bevin 465f16330a Fix spelling mistake in spec 2012-12-01 12:49:18 -05:00
Steve Klabnik ae852341c1 Don't generate #decorates.
We don't want to use that anymore.
2012-11-29 17:22:39 -08:00
Andrew Haines 025742cb3b Rename Base to Decorator 2012-10-09 10:05:22 +01:00
Vasiliy Ermolovich 6f0d5aae9f handle namespaced models in spec generators
closes #279
2012-09-21 19:02:06 +03:00
Vasiliy Ermolovich f42ec0a287 make specs order independed 2012-06-09 02:14:48 +03:00
Vasiliy Ermolovich b302e8dd42 use ApplicationDecorator if it's present, closes #190 2012-05-12 02:18:57 +03:00
Steve Klabnik 9155e58f74 Generators redux.
Lots of changes here:

* rake draper:install no longer needed
* don't generate an ApplicationGenerator by default
** If one exists, the generator respects it
* Fixes #53
2012-05-09 14:17:41 -04:00