Commit Graph

28 Commits

Author SHA1 Message Date
Jared Beck f3bc5290ee Automate test setup
Goal: rake default task can do everything without manual setup

Also delete `spec/dummy_app/db/schema.rb`. People forget (understandably)
to update it. As long as we don't use the db:setup task first,
we don't need it.
2018-06-04 00:32:47 -04:00
Jared Beck af573781da Delete the "test" task, we only use rspec 2018-05-29 18:25:44 -04:00
Jared Beck cfbf7a647c Lint: Style/FrozenStringLiteralComment 2017-12-10 23:05:39 -05:00
Jared Beck 94b9306647 Finish the conversion to RSpec
- Convert serializers/mixin_json_test.rb to rspec
- Convert functional/thread_safety_test.rb to rspec
- Convert functional/controller_test.rb to rspec
- Move the dummy app from test to spec, delete test dir
2017-06-10 01:45:46 -04:00
Jared Beck e2505c4f30 rubocop 0.48.1 (was 0.48.0) 2017-05-21 02:40:23 -04:00
Jared Beck 7541497684 Disable ruby interpreter warnings 2017-05-21 01:29:58 -04:00
Jared Beck c9161129c3 Lint: Set TargetRubyVersion to 2.1 2017-03-31 21:45:06 -04:00
Jared Beck 61f6fddd08 Fix Style/StringLiteralsInInterpolation 2016-03-05 17:08:16 -05:00
Jared Beck 8980f08d0e Fix Style/StringLiterals: Use double quotes 2016-03-05 17:07:32 -05:00
Jared Beck 10941c8459 Fix Style/HashSyntax 2016-02-15 22:32:40 -05:00
Jared Beck 5f91691206 Fix Style/EmptyLines 2016-02-15 22:20:42 -05:00
Jared Beck 1d7625640c Hide list of specs
When running rspec from rake, hide the list of specs.
(bit.ly/1nVq3Jn)
2016-02-06 23:54:35 -05:00
Jared Beck d030ba2b02 Remove ruby 1.8 hacks
PaperTrail no longer supports ruby 1.8.
2015-12-13 01:14:59 -05:00
Jared Beck cbce4d361f Run rubocop linter before test suite
Most of the "cops" are wholly or partially disabled at this point.
As offenses are fixed, cops will move from `.rubocop_todo.yml` to
`.rubocop.yml`.

See
https://github.com/bbatsov/rubocop#automatically-generated-configuration
for details.
2015-11-27 21:25:41 -05:00
Ben Atkins a453811226 Update rake task description to be more accurate [ci skip] 2015-02-17 15:36:04 -05:00
Ben Atkins 1b1e74dab5 Basic version comparisons for RUBY_VERSION can be done using Strings
As opposed to unnecessarily casting the RUBY_VERSION to a Float
2015-01-14 14:09:30 -05:00
Ben Atkins 618768853a Add warning messages to test helpers for the 'prepare' rake task to avoid confusion [ci skip] 2014-03-20 16:17:11 -04:00
Russell Osborne 0e80cd8779 Adding Full Support to Test Against Multiple DB engines.
Accomplished by swapping out database.yml files for the dummy rails instance with en engine specific one.
2014-03-16 11:07:17 -04:00
Ben Atkins 4b70fde8d3 Condensing Rakefile [ci skip] 2013-08-31 15:34:24 -04:00
Ben Atkins 2d1ee54297 Fixing the test for the :on option receiving a symbol as an argument. Also fixing the rake task to run both test suites so that it will exit out to the console with a 1 when either suite fails 2013-08-30 15:14:16 -04:00
Ben Atkins e3a039b3db Improving the structure and syntax of the RSpec helper, modifying it to work with rspec in addition to rspec-rails 2013-08-27 15:12:33 -04:00
Andy Stewart 36a4b9b323 Convert to Rails 3 idioms. 2011-02-08 17:16:35 +00:00
Andy Stewart bd1877cab0 Use Bundler to manage dependencies. 2010-10-15 12:53:33 +01:00
Andy Stewart 6f58a59523 Ditch Jeweler: more trouble than it's worth. 2010-10-12 13:15:56 +01:00
Andy Stewart d5e8cde098 Use Gemcutter. 2009-11-23 17:00:07 +00:00
Andy Stewart 6451a518c3 Added RDoc and Rcov tasks. 2009-05-27 18:06:30 +01:00
Andy Stewart b56c346255 Moving Jeweler tasks to main Rakefile. 2009-05-27 16:41:40 +01:00
Andy Stewart e9a8648c22 First commit. 2009-05-27 16:21:20 +01:00