I think this should be written as `it "should ...", :if => "".respond_to?(:encode) do`. That way it is still known by rspec even when it isn't run. https://www.relishapp.com/rspec/rspec-core/docs/filtering/if-and-unless