Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2015-06-16 18:36:59
Size: 30
Editor: BalasankarC
Comment:
Revision 5 as of 2015-06-17 02:24:51
Size: 744
Editor: Balasankar C
Comment: add missing info
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:


=== Common Errors and solutions ===

==== 1. tests complaining about 'skip' ====
`: NoMethodError: undefined method `skip' for #<TestFoo:0x007fb75484f158>

'''Two solutions''' [[https://web.archive.org/web/20150616194946/http://stackoverflow.com/questions/28252036/how-to-run-existing-test-code-on-ruby-2-2|Reference]]
 *. Use test-unit (require 'test/unit' )and replace skip with omit
 *. use minitest (require 'minitest/autorun') and use skip itself


==== 2. Ruby2.2 reports NameError: uninitialized constant <Object>::<Something> while Ruby2.1 works ====
==== 3. Ruby2.2 not detecting sqlite3 gem and suggests to add it to Gemfile ====

ruby-sqlite3 needs to be rebuilt with Ruby2.2 support

Ruby 2.2 compatibility

Common Errors and solutions

1. tests complaining about 'skip'

: NoMethodError: undefined method skip' for #<TestFoo:0x007fb75484f158>

Two solutions Reference

  • . Use test-unit (require 'test/unit' )and replace skip with omit
  • . use minitest (require 'minitest/autorun') and use skip itself

2. Ruby2.2 reports NameError: uninitialized constant <Object>::<Something> while Ruby2.1 works

3. Ruby2.2 not detecting sqlite3 gem and suggests to add it to Gemfile

ruby-sqlite3 needs to be rebuilt with Ruby2.2 support