Commit Graph

1891 Commits

Author SHA1 Message Date
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
Andrew White
17a886b275 Add failing test case for #9654 2013-04-10 08:11:43 +01:00
Aaron Patterson
cc0c392c77 add integration test for shorthand rake tests 2013-04-05 17:12:23 -07:00
Aaron Patterson
2e0e5bb1e4 rake test app/model/foo.rb and rake test models/foo works 2013-04-05 17:06:36 -07:00
Aaron Patterson
88cf64a669 extract test info from the command line and set up the test task 2013-04-05 16:38:37 -07:00
Aaron Patterson
7f698da887 add a class for splitting up rake commands 2013-04-05 16:31:19 -07:00
Aaron Patterson
c7a148f389 removing rails test, updating docs to show how to use rake test 2013-04-05 15:44:41 -07:00
Aaron Patterson
01034d3be0 Merge branch 'master' into railstest
* master: (44 commits)
  Improve the changelog entry [ci skip]
  Fix explicit names on multiple file fields
  Correctly parse bigint defaults in PostgreSQL
  Move changelog to the top [ci skip]
  Fix indent and remove extra white spaces
  Fix scope chaining + STI
  failing test for #9869
  Improve `belongs_to touch: true` timestamp test
  Sort modules in alphabetical order.
  Avoid an attempt to fetch old record when id was not present in touch callback
  Use the correct pk field from the reflected class to find the old record
  Refactor mail_to to not generate intermediate hashes when adding href
  Ensure mail_to helper does not modify the given html options hash
  Use inspect when writing the foreign key from the reflection
  Use a space after the comment sign when showing the result of commands
  Exclude template files for rdoc API [ci skip]
  template should have generic name
  use | to have more intent revealing code
  Revert "Merge pull request #10034 from benofsky/fix_skipping_object_callback_filters"
  stop depending on callbacks
  ...

Conflicts:
	railties/test/application/rake_test.rb
2013-04-05 14:48:49 -07:00
Aaron Patterson
c037659294 do not blow away the test database on every run 2013-04-05 14:22:29 -07:00
Vipul A M
113e39625b fix private attribute warning 2013-04-04 23:23:46 +05:30
Vipul A M
dcc75b05d4 fix warnings in railties test 2013-04-04 10:21:43 +05:30
Vipul A M
2282964de7 Fix some railties test warnings 2013-04-03 23:25:46 +05:30
Aaron Patterson
125cbc3fdf test no longer makes sense after requiring all test files 2013-04-03 12:16:19 -04:00
Aaron Patterson
328814b000 switch the testing tests to use rake 2013-04-03 12:16:19 -04:00
Aaron Patterson
29f973c92c Revert "Update Rake tasks to call rails test instead"
This reverts commit b51673fbd9563bd3ffa22e22255ca1cef80cfb6d.
2013-04-03 12:16:19 -04:00
Aaron Patterson
62a080309b apps that depend on active record should load fixtures 2013-04-03 12:16:18 -04:00