Aaron Patterson
d8516d702c
Merge pull request #4371 from rafaelfranca/test_unit_cleanup
...
Test unit cleanup
2012-01-09 09:34:36 -08:00
José Valim
7cfd1bd76a
Merge pull request #4385 from r-stu31/static_compiler_option_zip_files
...
Sprockets::StaticCompiler: option ":zip_files"
2012-01-08 05:00:47 -08:00
r-stu31
c763b03d15
Extend the set of compressible files by some common types.
2012-01-08 12:28:33 +01:00
r-stu31
8e727ecea1
Enable to handle over in options the regexp determining which files to gzip.
2012-01-08 12:27:56 +01:00
Piotr Sarnacki
199dcaeade
Fix tests, ./ is not needed for relative entries in Gemfile in newest bundler version
2012-01-07 19:19:10 +01:00
Piotr Sarnacki
3d2c28e012
No need to check for 'draw do |map|' anymore
2012-01-07 19:14:27 +01:00
Piotr Sarnacki
8ac53db5ee
Add Gemfile entry when creating a plugin in application's directory
...
After vendor/plugins were removed from rails, the new method to create
plugins is to create gem plugins. Most of the time if you create a
new plugin in rails application's directory, you want to extract
something from that application and use it immediately, ie. add
such line to Gemfile:
gem 'foo', :path => './vendor/foo'
This commit makes plugin new generator to add such line automatically.
2012-01-07 19:14:27 +01:00
José Valim
089bc761f8
Merge pull request #4378 from lest/changes-1-9
...
ruby 1.9 related refactoring
2012-01-07 05:33:46 -08:00
Sergey Nartimov
5215eed5a3
Symbol#[] method presents in Ruby 1.9
2012-01-07 15:30:36 +03:00
Sergey Nartimov
8c63e7d35d
instance_variables method returns symbols in 1.9 ruby
2012-01-07 15:30:05 +03:00
José Valim
0c1846e409
Merge pull request #4377 from lest/instance-variables-1-9
...
get rid of using instance_variable_names method from AS
2012-01-07 03:51:06 -08:00
Sergey Nartimov
7d862359d0
get rid of using instance_variable_names method from AS
...
- instance_variables return symbols in 1.9
- there is instance_variable_defined? method
2012-01-07 14:44:47 +03:00
Piotr Sarnacki
ba168e8f06
Merge pull request #4369 from lest/remove-warnings
...
use stub instead of redefining method to suppress warnings
2012-01-07 03:18:46 -08:00
Piotr Sarnacki
f082004fbc
Merge pull request #4373 from castlerock/remove_condition
...
if turn available then MiniTest::Unit.respond_to?(:use_natural_language_...
2012-01-07 03:17:10 -08:00
José Valim
ef023ce1d8
Merge pull request #4376 from bogdan/after_initialize_on_dup
...
Fixed after_initialize callbacks call on AR model #dup
2012-01-07 01:22:49 -08:00
José Valim
b5dceafd30
Merge pull request #4375 from lest/benchmark-helper
...
add benchmark helper that works in erb
2012-01-07 01:18:51 -08:00
Sergey Nartimov
904e544cc8
add benchmark helper that works in erb
2012-01-07 12:17:48 +03:00
Bogdan Gusiev
30468f58a7
Fixed after_initialize callbacks call on AR model #dup
2012-01-07 11:11:04 +02:00
Vishnu Atrai
c0042b1df9
if turn available then MiniTest::Unit.respond_to?(:use_natural_language_case_names=) available
2012-01-07 12:22:18 +05:30
Rafael Mendonça França
22a8c2a900
Whitespaces ✂️
2012-01-06 22:52:22 -03:00
Rafael Mendonça França
0a5f3dedf4
Remove unneeded code
2012-01-06 22:52:02 -03:00
Rafael Mendonça França
5a740b8386
Test constant is not defined anymore
2012-01-06 22:51:45 -03:00
Rafael Mendonça França
94248ffe1e
Use MiniTest::Assertions instead of Test::Unit::Assertions
2012-01-06 22:51:11 -03:00
Aaron Patterson
686f94e768
remove reference to Test::Unit
2012-01-06 17:39:44 -08:00
Aaron Patterson
4a2035156a
spec class names can possibly be nil in mt/s < 2.6.1, so work around that
2012-01-06 17:28:37 -08:00
Aaron Patterson
fec6f1ba82
Merge pull request #4360 from rafaelfranca/patch-1
...
Remove more references to Test::Unit
2012-01-06 16:43:18 -08:00
Aaron Patterson
1c09c29a09
register spec subclasses for people who spec
2012-01-06 15:50:47 -08:00
Aaron Patterson
b15d2c0708
require minitest rather than test/unit
2012-01-06 15:50:47 -08:00
Aaron Patterson
a58fb105e7
backport assert_not_same
2012-01-06 15:50:47 -08:00
Aaron Patterson
9342492e14
require test/unit and sort test order
2012-01-06 15:50:47 -08:00
Aaron Patterson
aa7857b617
started converting AS::TestCase to minitest
2012-01-06 15:50:47 -08:00
Rafael Mendonça França
185aa821d9
Whitespaces ✂️
2012-01-06 20:43:12 -03:00
Rafael Mendonça França
3d4754f131
Use ActiveModel::TestCase instead of Test::Unit:TestCase
2012-01-06 20:43:08 -03:00
Rafael Mendonça França
ce84df020a
MiniTest is always defined in this case
2012-01-06 20:43:04 -03:00
Rafael Mendonça França
f9382cd794
Test::Unit::Util::BacktraceFilter is never defined
2012-01-06 20:42:53 -03:00
Sergey Nartimov
f1b05deba7
use stub instead of redefining method to suppress warnings
2012-01-07 02:17:18 +03:00
Aaron Patterson
f65559fcc2
make sure the test case name is nil
2012-01-06 15:17:08 -08:00
Aaron Patterson
056b8386d0
removing unnecessary requires
2012-01-06 14:43:04 -08:00
Aaron Patterson
579acb49df
just mix the run method in for minitest
2012-01-06 14:08:23 -08:00
Aaron Patterson
0579f303ec
rescue the assertion exception
2012-01-06 14:01:02 -08:00
Aaron Patterson
f8964bd546
add the class name to the assertion message
2012-01-06 13:58:55 -08:00
Aaron Patterson
984ce0cf9a
use a regular expression for the number of passes. We only care that
...
all tests pass, not the number of tests.
2012-01-06 13:46:28 -08:00
Jeremy Kemper
6708e8438c
Merge pull request #4349 from lest/change-array-wrap-2
...
Array.wrap is an overhead as there is already check for class
2012-01-06 12:48:13 -08:00
Santiago Pastorino
69fe594e69
Merge pull request #4358 from castlerock/remove_plus_minus_support_for_ruby18
...
revert "fixing some tests on ruby 1.9.3"
2012-01-06 12:12:45 -08:00
Vishnu Atrai
4f75809f04
revert "fixing some tests on ruby 1.9.3 SHA 33f222b"
2012-01-07 01:26:02 +05:30
Santiago Pastorino
4d7ed974c0
Merge pull request #4359 from Karunakar/logger
...
removed unnecessary require for activesupport/core_ext/array/wrap
2012-01-06 11:54:01 -08:00
Aaron Patterson
9699eeb496
convert build_message to sprintf
2012-01-06 11:52:26 -08:00
Aaron Patterson
6548fc6617
use assert_equal and assert_operator
2012-01-06 11:48:32 -08:00
Aaron Patterson
a0dc9cae88
use sprintf rather than build_message
2012-01-06 11:41:08 -08:00
Aaron Patterson
a0bab371ae
Just use assert_equal
2012-01-06 11:34:11 -08:00