1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00
Commit graph

23 commits

Author SHA1 Message Date
Mauro George
a9c6a90d93 Fix broken specs on AR 4.2.1
From the 4.2.0 to 4.2.1 the internals of AR have change.
2015-03-26 11:59:25 -03:00
Mauro George
7e6e7c01aa Remove conditional check against old Ruby versions
AwesomePrint supports Ruby 1.9.3 or later.
This remove lot of conditional check against Ruby prior to 1.9.3.
2015-02-12 19:57:41 -02:00
Mauro George
f67bb17e11 Cover missing line on ActiveRecord
The type check of ActiveRecord::Relation on ActiveRecord extension was
never reached.

With this tests, we add a coverage against this.
2015-02-11 19:55:00 -02:00
Mauro George
13f0278b25 Fix specs on Ruby 1.9.3 and Rails 3.2 and 4.2
ActiveRecord has a little different output when running on Ruby 1.9.3.
2015-01-20 14:23:20 -02:00
Mauro George
526f907629 Improves spec runner harness, switches to better env detection.
Does not run rails specs when running mongoid specs

WIP Start of remove BRE to check tests

Remove old helper of active record

Use RSpec skip to skip AR specs

Run ActionView only when needed

Run ActiveSupport only when needed

Run Mongoid only when needed

Create ExtVerifier.require_dependencies

Run MongoMapper only when needed

Always load nokogiri specs

Always load ostruct specs

Run Ripple only when needed

Remove :: when check for defined constants

Require spec_helper directly

Remove 1.8.6 old monkey patch

Add some RSpec configs
2015-01-02 13:20:18 -05:00
Mauro George
e62397c2bb Fix broken specs
Fix specs on all gemfiles.
Removed some specs related to version before of ActiveRecord 3.2.
2014-12-31 13:04:42 -02:00
Eoin Kelly
52bffc1873 Get specs passing with latest versions of extension gems
* Get specs passing with latest versions of
    * ActiveRecord  4.0.4
    * ActiveSupport 4.0.4
    * MongoMapper   0.13.0
    * Mongoid       4.0.0
    * ActionView    4.0.4
    * Ripple seems to be abandoned so no changes made.
* Clean up ActiveRecord setup:
    * Creating tableless AR objects seems even trickier in Rails 4 so
      simplify testing setup by using an in-memory SQLite DB back-end.

Conflicts:
	spec/ext/active_record_spec.rb
2014-12-29 12:11:08 -05:00
James Cox
77ceaf5090 Convert specs to RSpec 3.0.4 syntax with Transpec
This conversion is done by Transpec 3.0.7 with the following command:
    transpec

* 3 conversions
    from: == expected
      to: eq(expected)

* 3 conversions
    from: obj.should
      to: expect(obj).to

For more details: https://github.com/yujinakayama/transpec#supported-conversions
2014-12-29 12:00:33 -05:00
Joshua Priddle
84bfda9d07 Fix printing abstract classes in ActiveRecord 3 2014-12-29 11:48:44 -05:00
James Cox
9ce54b5557 Allows specs to run 2014-12-29 11:38:13 -05:00
adamjonas
2bc678bba5 update rspec syntax from should to expect via transpec 2014-12-18 12:24:30 -05:00
Mike Dvorkin
5f00926d80 Fixed specs to work with the latest ActiveRecord 2012-09-05 18:40:30 -07:00
Mike Dvorkin
c29f36e483 Improved class formatting of object.methods 2011-12-19 22:30:06 -08:00
Mike Dvorkin
3258a9bc63 Format ActiveRecord instances showing attributes only 2011-12-18 15:49:43 -08:00
Mike Dvorkin
c6d27131df Made specs pass with ActiveRecord 3.1 2011-11-24 00:16:43 -08:00
Mike Dvorkin
fc23c998bb Made specs pass with ActiveRecord 2.x 2011-11-23 22:48:51 -08:00
Mike Dvorkin
562201f7dd Streamlined error reporting for the extension specs 2011-11-23 21:33:03 -08:00
Mike Dvorkin
d2c0a398e2 Fixed nested left alighment; fixed ActiveRecord and MongoMapper object specs 2011-11-08 21:27:02 -08:00
Mike Dvorkin
50152e17e9 Fixed printing ActiveRecord::Base class ancestors 2011-11-08 18:30:50 -08:00
Mike Dvorkin
b8822574ec Refactored MongoMapper extension and its specs 2011-05-13 21:07:34 -07:00
Mike Dvorkin
5de4abf359 Fixed ActiveRecord object specs to include attributes and instance variables 2011-05-13 20:05:37 -07:00
Mike Dvorkin
5d76ded7ed Format ActiveRecord and MongoDocument instances as any other arbitrary objects 2011-05-13 17:36:12 -07:00
Mike Dvorkin
b538cca4c5 Renamed directories 2011-05-13 16:37:24 -07:00