Sha256: b3bbbb96a995630cce4f9efeff863af8c8de0db700fd8c3113dc3abfb64bb1f3

Contents?: true

Size: 217 Bytes

Versions: 8

Compression:

Stored size: 217 Bytes

Contents

require 'spec_helper'

describe NightcrawlerSwift::Ext::NilClass do

  subject do
    nil
  end

  describe "#to_h" do
    it "always returns an empty hash" do
      expect(subject.to_h).to eql({})
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
nightcrawler_swift-1.0.0 spec/lib/nightcrawler_swift/ext/nil_class_spec.rb
nightcrawler_swift-0.11.1 spec/lib/nightcrawler_swift/ext/nil_class_spec.rb
nightcrawler_swift-0.11.0 spec/lib/nightcrawler_swift/ext/nil_class_spec.rb
nightcrawler_swift-0.10.0 spec/lib/nightcrawler_swift/ext/nil_class_spec.rb
nightcrawler_swift-0.9.0 spec/lib/nightcrawler_swift/ext/nil_class_spec.rb
nightcrawler_swift-0.8.1 spec/lib/nightcrawler_swift/ext/nil_class_spec.rb
nightcrawler_swift-0.8.0 spec/lib/nightcrawler_swift/ext/nil_class_spec.rb
nightcrawler_swift-0.7.0 spec/lib/nightcrawler_swift/ext/nil_class_spec.rb