1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00
Commit graph

20 commits

Author SHA1 Message Date
Carlos Antonio da Silva
f02216793a Update missing test description removing "should" [ci skip]
Related to #1057.
2014-05-22 09:07:03 -03:00
John Voloski
3bff1fa5a1 improve form_builder's tests description and remove 'should' 2014-05-14 14:18:43 -03:00
Lauro Caetano
60eba68580 Make Relation respond to to_ary and each, to avoid calling
`Model.all.to_a` in tests.
2014-04-02 17:46:23 -03:00
Lauro Caetano
6e7a5da9ca Add support scopes to be used in associations. 2014-04-02 14:42:10 -03:00
Lauro Caetano
a87096cc22 Make the all method from test models return a Relation. 2014-04-02 11:46:01 -03:00
Lauro Caetano
8e0d5ba799 Only call order when the given association responds to it.
Fixes #966.

This check is necessary because the given association may not respond to `order`.
2014-03-31 16:00:17 -03:00
Bradly Feeley
5df74178a6 Adding test case for when association condition is a proc. 2013-05-26 09:10:04 -07:00
Vasiliy Ermolovich
3a9a81fa85 remove mocha 2013-02-28 00:12:37 +03:00
Renato Mascarenhas
34312c9fbc Use 1.9 hash style on code and docs. 2013-01-28 19:02:59 -02:00
Rafael Mendonça França
1411718c00 Add back the check for the multiple attribute 2012-12-28 18:06:04 -03:00
Lucas Mazza
96a5b64d3e SimpleForm no longer sets the size attribute by itself.
This should be managed using CSS or you should set the `size` option
on your own. The `default_input_size` configuration setting is now
deprecated and should be removed on SimpleForm 3.1+.

See #542.
2012-12-27 19:39:32 -02:00
Carlos Antonio da Silva
120c364f7d Move label I18n test with defaults for associations to labels test file
Also reorganize some hashes and spaces.
2012-10-26 01:27:54 -02:00
Carlos Antonio da Silva
f3d7ba7c12 Fix preload collection tests
:preload => false was being used twice making two tests have the same
implementation.

Also the test that was supposed to test :preload => false with a
collection was testing against a non-collection association.
2012-10-26 01:09:51 -02:00
Vasiliy Ermolovich
c5f913c378 fix default I18n lookup for association input
closes #679
2012-10-24 20:51:13 +03:00
Vasiliy Ermolovich
0bb5726aa3 raise ArgumentError when has_one association was provided 2012-09-13 23:07:31 +03:00
Vasiliy Ermolovich
1cf06d3a7e association creates blank select if collection is nil
closes #595
2012-06-23 00:23:55 +03:00
Carlos Antonio da Silva
a3cafcaff7 Update mocha and fix stubbing method on nil issues 2012-04-21 20:01:14 -03:00
Rafael Mendonça França
f4a1ac6f83 FormBuilder methods should not modify the options hash
Closes #463
2012-02-21 01:42:06 -02:00
Carlos Antonio da Silva
26f3c20f1a :radio is not :radio_buttons
Makes the API more consistent with :check_boxes, and improves
compatibility with bootstrap collections by avoiding :radio namespace
collision.
2012-01-27 17:47:48 -02:00
José Valim
3ee59b5d0d Break form builder test into smaller files. 2011-09-08 16:04:36 +02:00