Performing basic rail tests

I would like to contribute to the rails project, but stumbled over the first hurdle ... I cloned the rails repository and I get an error message when I try to run unit tests.

$ bundle exec rake test ... /home/me/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/minitest/spec.rb:131:in `register_spec_type': wrong number of arguments (1 for 2) (ArgumentError) 

I use:

  • rvm with ruby โ€‹โ€‹ruby-1.9.3-preview1 (1.9.2 told me that there is incompatibility with rails 4)
  • Rake-0.9.2.2
  • last github commit attempt: 211174a
  • (ubunt)

Just double check:

 $ ruby -v ruby 1.9.3dev (2011-07-31 revision 32789) [i686-linux] 

I read and did not find any information at http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html

We also completely reinstalled rvm, recompiled ruby, and replaced all the gems several times.

+4
source share
1 answer

The leading branch of Rails is now in beta for 4.0.0 and removes support for Ruby 1.8.7. I donโ€™t know why it doesnโ€™t work with previewing Ruby 1.9.3, but I would recommend always working with the latest Ruby version stable . Another option is to try running the tests in Ruby 1.9.2 and see if you have any errors.

+1
source

Source: https://habr.com/ru/post/1393865/


All Articles