diff options
author | Robert Glaser <mail@robert-glaser.de> | 2011-10-18 15:29:16 +0200 |
---|---|---|
committer | Robert Glaser <mail@robert-glaser.de> | 2011-10-18 15:29:16 +0200 |
commit | 8d3cd530c4d165b1bbd2e551d491dd81e2c3bff0 (patch) | |
tree | c1148706f6e04637891c1425a55792eb7a7e8541 /railties/test/application | |
parent | 5e1b912f3b3a81cec99a3743b3a9d21e5c96d97c (diff) | |
download | rails-8d3cd530c4d165b1bbd2e551d491dd81e2c3bff0.tar.gz rails-8d3cd530c4d165b1bbd2e551d491dd81e2c3bff0.tar.bz2 rails-8d3cd530c4d165b1bbd2e551d491dd81e2c3bff0.zip |
Fixed DataMapper namings in symbols and constants.
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/generators_test.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/railties/test/application/generators_test.rb b/railties/test/application/generators_test.rb index 4365d00b1f..8718f27de1 100644 --- a/railties/test/application/generators_test.rb +++ b/railties/test/application/generators_test.rb @@ -45,10 +45,10 @@ module ApplicationTests test "generators set rails options" do with_bare_config do |c| - c.generators.orm = :datamapper + c.generators.orm = :data_mapper c.generators.test_framework = :rspec c.generators.helper = false - expected = { :rails => { :orm => :datamapper, :test_framework => :rspec, :helper => false } } + expected = { :rails => { :orm => :data_mapper, :test_framework => :rspec, :helper => false } } assert_equal(expected, c.generators.options) end end @@ -64,7 +64,7 @@ module ApplicationTests test "generators aliases, options, templates and fallbacks on initialization" do add_to_config <<-RUBY config.generators.rails :aliases => { :test_framework => "-w" } - config.generators.orm :datamapper + config.generators.orm :data_mapper config.generators.test_framework :rspec config.generators.fallbacks[:shoulda] = :test_unit config.generators.templates << "some/where" @@ -95,15 +95,15 @@ module ApplicationTests test "generators with hashes for options and aliases" do with_bare_config do |c| c.generators do |g| - g.orm :datamapper, :migration => false + g.orm :data_mapper, :migration => false g.plugin :aliases => { :generator => "-g" }, :generator => true end expected = { - :rails => { :orm => :datamapper }, + :rails => { :orm => :data_mapper }, :plugin => { :generator => true }, - :datamapper => { :migration => false } + :data_mapper => { :migration => false } } assert_equal expected, c.generators.options @@ -114,12 +114,12 @@ module ApplicationTests test "generators with string and hash for options should generate symbol keys" do with_bare_config do |c| c.generators do |g| - g.orm 'datamapper', :migration => false + g.orm 'data_mapper', :migration => false end expected = { - :rails => { :orm => :datamapper }, - :datamapper => { :migration => false } + :rails => { :orm => :data_mapper }, + :data_mapper => { :migration => false } } assert_equal expected, c.generators.options |