Commit Graph

1140 Commits

Author SHA1 Message Date
Arun Agrawal
24d67cc9df As we are adding db folder in it. Required in test also. 2011-07-17 18:39:33 +05:30
Hendy Tanata
7b619f1d7b Improve formatting of route to Rack application in rake routes.
This route:

    match 'foo/:id' => RackApp, :id => /[A-Z]\d{5}/

is shown as:

    /foo/:id(.:format) RackApp {:id=>/[A-Z]\d{5}/}
2011-07-17 00:49:48 +08:00
Hendy Tanata
193e4de206 Better formatting of route requirements in rake:routes.
Previously it was:

    {:controller=>"photos", :action=>"show", :id=>/[A-Z]\d{5}/}

Now it becomes:

    photos#show {:id=>/[A-Z]\d{5}/}
2011-07-16 04:23:05 +08:00
José Valim
704ee0df65 Use cache/assets instead. 2011-07-12 22:55:34 -03:00
José Valim
8f0e0b63f5 assets.cache_store now defaults to filesystem. You will want to share tmp/assets_cache between deploys. 2011-07-12 22:30:17 -03:00
Marc-Andre Lafortune
eeb58b0934 Generate valid default fixtures for models with a type column
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-07-11 19:47:57 -03:00
Franck Verrot
ea649de669 Rails.application#env_config is now public API. [Closes #1924] 2011-07-11 11:05:26 +02:00
José Valim
60076de1d4 Make Rails.groups accept arrays. 2011-07-10 08:36:08 -03:00
José Valim
2a24bcc6cf Don't raise on mass assignment for test 2011-07-07 18:58:04 -03:00
José Valim
35597e3606 Ensure the engine_path is there (it may make CI happy). 2011-07-06 23:00:02 -03:00
José Valim
2f6e3895a8 Make compressors lazily load. 2011-07-06 21:41:13 -03:00
Santiago Pastorino
61913684a2 Merge pull request #1926 from tobsch/master
Accept application.js/.css to exist in a deeper directory depth by default
2011-07-06 11:42:29 -07:00
Jake Varghese
467c9b6e23 fix engines rake tasks 2011-07-04 15:48:15 -05:00
Damien Mathieu
dc2d8af1a3 Load the generators test helper and properly load it's test case 2011-07-03 20:22:30 +02:00
Sam Pohlenz
a7a58af244 Fix has_migrations? check in Rails::Engine 2011-07-03 13:02:58 +09:30
Tobias Schlottke
139971d3cc Now accepting css/js files in deeper directory structures by default.
This is useful for engines with own application.{js|css}-files.
See: https://github.com/rails/rails/issues/1520
2011-07-01 09:53:48 +02:00
Santiago Pastorino
539752a54c Move Coffee generators and templates to Coffee Railtie and create javascript_engine ("js") for apps that remove Coffee gem 2011-06-29 21:16:09 -03:00
José Valim
c49d1f2b26 Merge pull request #1899 from ihower/patch_rake_test
Make "rake test" display not only task name but also exception message.
2011-06-29 10:01:13 -07:00
Wen-Tien Chang
db87e48b5e Add test to rake test for error messages 2011-06-30 00:09:00 +08:00
José Valim
c690b7124d [IMPORTANT] Make "sprockets/railtie" require explicit.
This makes "sprockets/railtie" explicit. This means that sprockets will
be loaded when you require "rails/all". If you are not using requiring
"rails/all", you need to manually load it with all other framework
railties.

In order to be complete, this commit also adds --skip-sprockets to
the rails generator.
2011-06-29 09:41:16 -03:00
Arun Agrawal
2b046e7c39 fix test when running Jruby. If Jruby Platform is available the gem will change. 2011-06-29 02:41:52 +05:30
David Heinemeier Hansson
449cc3e999 Merge pull request #1481 from arunagw/lib_assets
Generating /lib/assets  for assets
2011-06-27 02:16:24 -07:00
Arun Agrawal
3534ea8d50 Tests added when no option is given with #jruby. It should generate
sqlite3 based app
2011-06-22 08:43:34 +05:30
Arun Agrawal
b2a19ad90b Making tests according to the changes #jruby 2011-06-22 08:15:12 +05:30
Arun Agrawal
b7bce739b1 Test added for jdbc-adapter 2011-06-22 08:04:18 +05:30
James A. Rosen
7ca14ea398 Railties: added tests for rake assets:clean 2011-06-21 09:51:18 -07:00
José Valim
5a26b88645 Create an :assets group in the Gemfile.
This group is required by default only on development and test
(you can change it on config/application.rb).

`rake assets:precompile` will automatically add the assets group
to Rails.groups (and consequently Bundler.require) and should work
transparently.
2011-06-21 11:24:06 -03:00
José Valim
a803aec00d Add Rails.groups to encapsulate available groups for require. 2011-06-21 11:24:05 -03:00
Alexey Gaziev
91bbb8e956 Removed tests for rescue branch for Rails 2.x compatibility 2011-06-20 22:29:30 +04:00
José Valim
08983fefd5 Attributes on scaffold and model generators default to string.
This allows the following: "rails g scaffold Post title body:text author"
2011-06-17 15:10:53 -03:00
Arun Agrawal
13f8b28cdf Using lib/assets only. Javascripts/Stylesheets people can fill later. 2011-06-16 19:07:07 +05:30
Santiago Pastorino
276618c652 Merge pull request #1676 from neerajdotname/make_test_name_meaningful
Remove "is_assed" with something more meaningful
2011-06-13 05:49:00 -07:00
Neeraj Singh
54c651a6bb Remove "is_assed" with something more meaningful 2011-06-13 04:34:09 -04:00
Ryan Bates
4dc3bb9cbd namespace engine assets 2011-06-12 18:29:14 -07:00
José Valim
04407a7b8a Make i18n tests more robust. 2011-06-12 12:45:09 +02:00
Vijay Dev
880371ef2b make 'rails runner' show usage when run without any options 2011-06-10 18:48:50 +05:30
Brian Quinn
25ad43015c Updated test to ensure correct sequence when copying engine/plugin migrations. 2011-06-10 12:12:50 +01:00
José Valim
eb8c0a7b1a Merge pull request #1356 from flippingbits/fix_engine_generator
Fix engine's generator
2011-06-09 00:01:00 -07:00
Stefan Sprenger
331d58fb04 Prepend bundle exec to get the correct Rake version 2011-06-07 14:07:32 +02:00
Stefan Sprenger
246c367570 Use RAILS_ISOLATED_ENGINE and fix namespaced generators tests 2011-06-07 12:16:05 +02:00
Stefan Sprenger
8ea90ffdb8 Use mattr_accessor :namespace 2011-06-07 11:36:11 +02:00
Stefan Sprenger
64f337eeb0 Don't create full Rails application if RAILS_ISOLATION_COMMAND equals engine 2011-06-07 11:26:38 +02:00
Stefan Sprenger
f18283194b Use namespace if it's a mountable engine 2011-06-07 11:21:38 +02:00
Stefan Sprenger
1a06530aa5 Added regression tests 2011-06-07 10:23:45 +02:00
Stefan Sprenger
402163916b Move test/engine/generators_test.rb to test/railties/generators_test.rb 2011-06-07 09:33:17 +02:00
Stefan Sprenger
5afd83c03b Add test for helper generator 2011-06-07 09:31:07 +02:00
Stefan Sprenger
a60624d6c0 Clean up engine's generator test and use bundle exec for invoking generators 2011-06-07 09:16:15 +02:00
Ryan Bigg
77616702df Clean up engine generators_test code and add test for models correctly namespaced 2011-06-07 08:32:03 +02:00
Ryan Bigg
32d35bac09 Add beginnings of test for generators within the context of an engine 2011-06-07 08:31:19 +02:00
Jon Leighton
38ad6bb2f5 Fix double definition of #teardown. Thanks @mike-burns 👍 2011-06-06 17:57:02 +01:00