Skip to content
Browse files

Change specs to pending if using 1.9.2

* Psych is broken for some use cases, so there is no way to run these specs
  properly yet.
  • Loading branch information...
1 parent 561d642 commit 3f47c4b2b900fe7adf48db8b9a3f698b6066e07b @dkubb dkubb committed
Showing with 8 additions and 8 deletions.
  1. +7 −7 spec/lib/serialization_method_shared_spec.rb
  2. +1 −1 spec/public/to_yaml_spec.rb
View
14 spec/lib/serialization_method_shared_spec.rb
@@ -93,7 +93,7 @@
end
it "should only includes properties given to :only option" do
- pending_if 'Psych provides no way to pass in parameters', @jruby_19 && @to_yaml do
+ pending_if 'Psych provides no way to pass in parameters', @ruby_192 && @to_yaml do
planet = Planet.new(
:name => "Mars",
:aphelion => 249_209_300.4
@@ -105,7 +105,7 @@
end
it "should serialize values returned by an array of methods given to :methods option" do
- pending_if 'Psych provides no way to pass in parameters', @jruby_19 && @to_yaml do
+ pending_if 'Psych provides no way to pass in parameters', @ruby_192 && @to_yaml do
planet = Planet.new(
:name => "Mars",
:aphelion => 249_209_300.4
@@ -119,7 +119,7 @@
end
it "should serialize values returned by a single method given to :methods option" do
- pending_if 'Psych provides no way to pass in parameters', @jruby_19 && @to_yaml do
+ pending_if 'Psych provides no way to pass in parameters', @ruby_192 && @to_yaml do
planet = Planet.new(
:name => "Mars",
:aphelion => 249_209_300.4
@@ -131,7 +131,7 @@
end
it "should only include properties given to :only option" do
- pending_if 'Psych provides no way to pass in parameters', @jruby_19 && @to_yaml do
+ pending_if 'Psych provides no way to pass in parameters', @ruby_192 && @to_yaml do
planet = Planet.new(
:name => "Mars",
:aphelion => 249_209_300.4
@@ -143,7 +143,7 @@
end
it "should exclude properties given to :exclude option" do
- pending_if 'Psych provides no way to pass in parameters', @jruby_19 && @to_yaml do
+ pending_if 'Psych provides no way to pass in parameters', @ruby_192 && @to_yaml do
planet = Planet.new(
:name => "Mars",
:aphelion => 249_209_300.4
@@ -155,7 +155,7 @@
end
it "should give higher precendence to :only option over :exclude" do
- pending_if 'Psych provides no way to pass in parameters', @jruby_19 && @to_yaml do
+ pending_if 'Psych provides no way to pass in parameters', @ruby_192 && @to_yaml do
planet = Planet.new(
:name => "Mars",
:aphelion => 249_209_300.4
@@ -167,7 +167,7 @@
end
it 'should support child associations included via the :methods parameter' do
- pending_if 'Psych provides no way to pass in parameters', @jruby_19 && @to_yaml do
+ pending_if 'Psych provides no way to pass in parameters', @ruby_192 && @to_yaml do
solar_system = SolarSystem.create(:name => "one")
planet = Planet.new(:name => "earth")
planet.solar_system = solar_system
View
2 spec/public/to_yaml_spec.rb
@@ -27,7 +27,7 @@ def deserialize(result)
end
end.new
- @jruby_19 = RUBY_PLATFORM =~ /java/ && JRUBY_VERSION >= '1.6' && RUBY_VERSION >= '1.9.2'
+ @ruby_192 = RUBY_VERSION >= '1.9.2'
@to_yaml = true
end

0 comments on commit 3f47c4b

Please sign in to comment.
Something went wrong with that request. Please try again.