Selaa lähdekoodia

Fixed Ruby conformance tests by running them under rvm Ruby.

Josh Haberman 9 vuotta sitten
vanhempi
commit
fc7f8d9cd0
3 muutettua tiedostoa jossa 4 lisäystä ja 5 poistoa
  1. 1 1
      ruby/Gemfile.lock
  2. 1 2
      ruby/ext/google/protobuf_c/defs.c
  3. 2 2
      ruby/travis-test.sh

+ 1 - 1
ruby/Gemfile.lock

@@ -1,7 +1,7 @@
 PATH
   remote: .
   specs:
-    google-protobuf (3.0.0.alpha.5.0)
+    google-protobuf (3.0.0.alpha.4.0)
 
 GEM
   remote: https://rubygems.org/

+ 1 - 2
ruby/ext/google/protobuf_c/defs.c

@@ -543,8 +543,7 @@ VALUE FieldDescriptor_name_set(VALUE _self, VALUE str) {
 
 upb_fieldtype_t ruby_to_fieldtype(VALUE type) {
   if (TYPE(type) != T_SYMBOL) {
-    rb_raise(rb_eArgError, "Expected symbol for field type, not: %s (%d)",
-             RSTRING_PTR(rb_inspect(type)), TYPE(type));
+    rb_raise(rb_eArgError, "Expected symbol for field type.");
   }
 
 #define CONVERT(upb, ruby)                                           \

+ 2 - 2
ruby/travis-test.sh

@@ -17,8 +17,8 @@ test_version() {
       "rvm install $version && rvm use $version && \
        which ruby && \
        gem install bundler && bundle && \
-       rake test"
-    cd ../conformance && make test_ruby
+       rake test &&
+       cd ../conformance && make test_ruby"
   fi
 }