Differences between revisions 1 and 2
Revision 1 as of 2015-06-16 18:36:59
Size: 30
Editor: BalasankarC
Comment:
Revision 2 as of 2015-06-16 18:47:48
Size: 539
Editor: BalasankarC
Comment:
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'''
 *. Use test-unit (require 'test/unit' )and replace skip with
 *. 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 2.2 compatibility

Common Errors and solutions

1. tests complaining about 'skip'

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

Two solutions

  • . Use test-unit (require 'test/unit' )and replace skip with
  • . 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