You can run generator spec by doing:
GENERATOR_SPEC=true rake spec:ative_record_41
We are doing this because we don't want to make API calls in the
spec. At the same time, we aldo don't want to use fakeweb or something
like that because it causes "you never realize until you go production"
situation. We had it before and shipped a bug - we are not sure what is
a better solution, but at long as I'm aware of this I'll take care of it.
extract model definitions for each ORM under spec/fake_app, and load them only if target ORM is loaded
by this mechanism, all ORMs share a model name "User", and the other specs such as helper specs and request specs will run polymorphically
Conflicts:
kaminari.gemspec
lib/kaminari/models/data_mapper_extension.rb
lib/kaminari/railtie.rb
spec/models/data_mapper_spec.rb
also, refactored a lot to make the code simple
Prevent problems when using running tests with
a mongoid.yml using YAML merge keys on Ruby 1.9.2
and RubyGems >= 1.5
Will be needed until r30629 and r30630 are backported
to 1.9.2 (ticket #4357)
http://redmine.ruby-lang.org/issues/show/4357