Maybe a dump question... Why is Test-Unit the default test framework when it''s not the most popular? https://www.ruby-toolbox.com/categories/testing_frameworks It there''s not a good reason, would Rails 4 be a good time to replace Test-Unit with Rspec? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/ArIYiPjrvz0J. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Rails 4 actually uses minitest - which also offers a "lite" version of the spec style matchers. As for specifically why rspec is not the default, I suggest you google "DHH rspec" ;) On Thursday, January 10, 2013, Weston Platter wrote:> Maybe a dump question... > > Why is Test-Unit the default test framework when it''s not the most popular? > https://www.ruby-toolbox.com/categories/testing_frameworks > > It there''s not a good reason, would Rails 4 be a good time to replace > Test-Unit with Rspec? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-core/-/ArIYiPjrvz0J. > To post to this group, send email to rubyonrails-core@googlegroups.com<javascript:_e({}, ''cvml'', ''rubyonrails-core@googlegroups.com'');> > . > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com <javascript:_e({}, ''cvml'', > ''rubyonrails-core%2Bunsubscribe@googlegroups.com'');>. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
On Fri, Jan 11, 2013 at 8:49 AM, Weston Platter <westonplatter@gmail.com> wrote:> Maybe a dump question... > > Why is Test-Unit the default test framework when it''s not the most popular? > https://www.ruby-toolbox.com/categories/testing_frameworks > > It there''s not a good reason, would Rails 4 be a good time to replace > Test-Unit with Rspec?Because there is consensus it is what we want to ship. We like very much the simplicity of Test::Unit. Rails core chooses the default stack based on what we believe is a good set of defaults. Popularity is not relevant for that criteria. At the same time, Rails allows you to switch to your preferred options. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
On Friday, January 11, 2013, Godfrey Chan wrote:> Rails 4 actually uses minitest - which also offers a "lite" version of the > spec style matchers.Support for minitest''s spec DSL was recently removed from Rails 4. If you want to use it you will need a gem like minitest-rails. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Em 11-01-2013 05:49, Weston Platter escreveu:> Maybe a dump question... > > Why is Test-Unit the default test framework when it''s not the most > popular? > https://www.ruby-toolbox.com/categories/testing_frameworks > > It there''s not a good reason, would Rails 4 be a good time to replace > Test-Unit with Rspec?Because Rails is omakase and DHH is the chef ;) http://david.heinemeierhansson.com/2012/rails-is-omakase.html -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Popularity is not the deciding factor in what''s the default in Rails. Popularity comes and goes and it makes no sense to keep changing defaults to fit the flavour of the month. People say the same thing about ERB vs HAML vs SLIM. If you want a different default, add it to your configuration and you''re done. Or use your own app templates. On Fri, Jan 11, 2013 at 5:32 AM, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> wrote:> Em 11-01-2013 05:49, Weston Platter escreveu: > > Maybe a dump question... > > Why is Test-Unit the default test framework when it''s not the most > popular? > https://www.ruby-toolbox.com/categories/testing_frameworks > > It there''s not a good reason, would Rails 4 be a good time to replace > Test-Unit with Rspec? > > > Because Rails is omakase and DHH is the chef ;) > > http://david.heinemeierhansson.com/2012/rails-is-omakase.html > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.