Andrew White
e5275f9b59
Clear named routes when routes.rb is reloaded
...
Fix an issue where Journey was failing to clear the named routes hash when the
routes were reloaded and since it doesn't overwrite existing routes then if a
route changed but wasn't renamed it kept the old definition. This was being
masked by the optimised url helpers so it only became apparent when passing an
options hash to the url helper.
2013-07-21 17:11:52 +01:00
Josef Šimánek
5ecd125a62
Added generated unit test for generator generator and new test:generators rake task included in test:all rake task.
2013-07-16 09:38:13 +02:00
Arun Agrawal
3b03733d9e
Added CheckPending middleware in default
...
As this middleware comes by default in a new
rails app
Added test to check omit for CheckPending when
Active Record is not included.
2013-07-15 11:22:15 +02:00
Arun Agrawal
b5f8630591
No need to add config for x_sendfile_header
...
Rack::Sendfile is loaded by default now
2013-07-15 10:42:52 +02:00
Guillermo Iguaran
0b61cc730e
Rack::Sendfile is now included in middleware by default, change tests to reflect that
2013-07-15 00:33:09 -05:00
Paul Nikitochkin
9cac69c602
#11381 : Ignore config.eager_load=true for rake
...
Closes #11381
2013-07-10 21:43:15 +03:00
Yuri Artemev
dd996ad394
handle notes in *.sass files
2013-07-08 19:13:01 +04:00
Arun Agrawal
4a2a504f40
Removed deprecated Rails.application.railties.engines
.
2013-07-04 19:56:23 +02:00
Yves Senn
f45718df3d
build fix: railties tests used deprecated SchemaCache
methods.
2013-07-04 11:16:04 +02:00
Rafael Mendonça França
9aaa3111b0
Use block instead passing as argument
2013-07-02 00:24:51 -03:00
Rafael Mendonça França
ab6601ccdf
Merge pull request #11203 from schneems/schneems/plugin_new-plugin
...
s/plugin_new/plugin
2013-07-01 11:36:47 -07:00
schneems
ec8d8652f3
s/plugin_new/plugin
...
There are historical reasons that the `plugin` command was `plugin_new`, now those are no longer applicable, we should remove the naming edge case from the project. This PR is based off of comments from #11176
ATP Railties
2013-06-30 22:03:39 -04:00
wangjohn
08dc92421a
Allowing multiple rails applications in the same ruby instance.
...
This change provides the ability to create a new application with a
configuration which can be specified.
2013-06-30 18:52:40 -07:00
Nikita Fedyashev
e68183cccb
Omit turbolinks configuration completely on skip_javascript generator option
2013-06-28 18:53:32 +06:00
wangjohn
3e5dbda5bb
Removing deprecated rake tasks.
...
The `rake test:recent` and `rake test:uncommitted` tasks were
deprecated and are now being removed.
2013-06-24 09:35:15 -04:00
Guillermo Iguaran
3f34f75d72
Merge pull request #10537 from jetthoughts/10428_bug_with_config_assets_precompile
...
#10428 : Added tests for config.assets.precompile
2013-06-21 08:19:41 -07:00
Paul Nikitochkin
9da48a998c
#10428 : Added tests for config.assets.precompile
...
Tests for bug in sprocket-rails:
do not use value of configuration options
which changed after environment loaded
2013-06-21 01:08:59 +03:00
Łukasz Strzałkowski
d8b0499141
Change from 'actionpack' to 'actionview' for locales path
2013-06-20 18:59:51 +02:00
Santiago Pastorino
9ec2e2ee91
Merge pull request #10902 from wangjohn/removing_application_singleton_calls
...
Calls to the application constant have been refactored
2013-06-17 17:37:54 -07:00
Terence Lee
2d5a6de4e2
initialize_on_precompile
is not used anymore.
2013-06-13 16:33:39 -07:00
wangjohn
55d708d597
Calls to the application constant have been refactored to use
...
Rails.application when drawing routes and creating other configurations
on the application.
2013-06-10 20:59:37 -07:00
Arun Agrawal
2c86fa211b
Testing CheckPending middleware
2013-06-08 21:10:15 +02:00
Xavier Noria
b9b06daa91
clearing autoloaded constants triggers routes reloading [ Fixes #10685 ]
...
Conflicts:
railties/test/application/loading_test.rb
2013-06-06 23:11:00 +02:00
Arun Agrawal
e27262493d
Fixing build for not checking migration
2013-06-05 12:11:10 +02:00
wangjohn
bb4378404d
Removing use of subclassed application constant and instead using the
...
more agnostic Rails.application syntax. This means tests will be more
portable, and won't rely on the existence of a particular subclass.
2013-06-03 21:38:17 -07:00
wangjohn
7655fc0b6c
Fixing a failing railtie test by using the ENV variable to specify a
...
particular controller to search for in rake routes.
2013-05-31 19:48:36 -04:00
wangjohn
42c9bd0617
Adding a test to make sure that using rake routes with the CONTROLLER
...
environment works correctly.
2013-05-29 17:30:06 -04:00
Aaron Patterson
9fef7c8dc9
Merge pull request #10527 from zenspider/squishy_minitest5
...
Squishy minitest5
2013-05-16 13:41:54 -07:00
Joe Kutner
430e5dce42
Removed jruby-openssl gem from default template Gemfile
2013-05-10 13:04:40 -05:00
Prathamesh Sonpatki
b5429eec60
Fix Typo existant -> existent [ci skip]
2013-05-08 09:50:46 +05:30
Ryan Davis
3073c53198
Updates to make rails 4 happy with minitest 5:
...
+ Namespace changes, overhaul of runners.
+ Internal ivar name changes
- Removed a logger globally applied to tests that spew everywhere?!?
+ Override Minitest#__run to sort tests by name.
+ Reworked testing isolation to work with the new cleaner architecture.
- Removed a bunch of tests that just test minitest straight up. I think these changes were all merged to minitest 4 a long time ago.
- Minor report output differences.
2013-05-06 17:38:45 -07:00
Prathamesh Sonpatki
9e8c467945
Fixes warning 'method redefined' in scaffold generators tests
...
- f1805a697831 Redefined 'test_scaffold_generator_no_assets' twice.
- Only the last instance of these three definitions of the same method
was getting called when the tests were actually running.
- This commit changes names of this method so that all three
definitions will be called
- scaffold.css is not generated by --assets=false switch.
- Test was expecting the presence of the file with --assets=false
- This issue was not discovered in f1805a697831b because it was
redefining the same method twice
2013-05-05 16:30:09 +05:30
Arun Agrawal
f1805a6978
Fixes Scaffold generator with --assets=false
...
Scaffold generator with --assets=false option
outputs an error
See #9525
2013-05-04 15:48:44 +02:00
Rafael Mendonça França
29dce6e4b5
Merge pull request #10436 from NARKOZ/keep-images
...
generate 'app/assets/images' directory when creating new rails app. Fixes #10434
2013-05-04 05:33:34 -07:00
Nihad Abbasov
f354ad1b69
generate 'app/assets/images' directory when creating new rails app
2013-05-04 16:26:27 +05:00
Sam Ruby
ec92d8440f
Add a test case for comparing Rails versions
...
558d402472
2013-05-03 14:18:57 -04:00
Piotr Sarnacki
9a4268db99
Fix generating route from engine to other engine
...
A regression was introduced in 5b3bb6, generating route from within an
engine to an another engine resulted in prefixing a path with the
SCRIPT_NAME value.
The regression was caused by the fact that SCRIPT_NAME should be
appended only if it's the SCRIPT_NAME for the application, not if it's
SCRIPT_NAME from the current engine.
closes #10409
2013-05-03 18:15:40 +02:00
Carlos Antonio da Silva
dfd5dc93a1
Remove not used module from initializable test
2013-05-01 23:21:08 -03:00
wangjohn
9703d67048
Removing the app constant and replacing it with Rails.application
...
syntax. This helps removing the class level abstraction of an
application.
2013-04-30 15:27:43 -04:00
wangjohn
81b7416afa
Removing Railtie::Configurable from the base Railtie object and making
...
Railtie itself abstract. This stops the weird behavior of forcing
subclasses of Railtie to include the Configurable module.
2013-04-29 13:06:29 -04:00
Prathamesh Sonpatki
7f36eb40ca
Use secure source for rubygems in engine tests
2013-04-18 09:18:51 +05:30
Aaron Patterson
94e68e7ad3
adding a test for root path in the app
2013-04-17 11:20:12 -07:00
Paul Nikitochkin
a49d93552f
Added tests for eager_load
config option to do not eager load for rake tasks if eager_load
is true
2013-04-12 22:24:54 +03:00
Xavier Noria
481618cfc2
replaces Pathname#(dirname|realpath) with File.$1
...
Simpler, thanks to @rubys for the hint.
2013-04-12 02:33:46 +02:00
Rafael Mendonça França
9027ce9f7e
Merge pull request #10175 from vipulnsward/initialize_fix
...
initialize instead of assert to fix warning
2013-04-11 09:20:54 -07:00
Vipul A M
8134c26640
initialize instead of assert to fix warning
2013-04-11 21:26:36 +05:30
Xavier Noria
2e3f5191f0
fixes app_rails_loader_test.rb in Mac OS X
2013-04-11 15:22:59 +02:00
Xavier Noria
f64ba8782e
fixes remaining lowercase "rails"
2013-04-11 13:28:57 +02:00
Xavier Noria
85de183071
application loader refactor and test suite complete rewrite
2013-04-11 13:19:16 +02:00
Prathamesh Sonpatki
22e5ab31b5
Searching for rails executable correctly
...
* Current logic of finding Rails executable in parent directory is
not returning full path of executable if it is found in one of the
parent directories
* To compensate for this, we have to call exec_app_rails recursively
until the executable is found or we cant do 'chdir' anymore
* This solution finds the correct executable path from parent
directory(s) recursively
2013-04-10 20:52:33 +05:30