Sha256: 5baeb686c4ab20f800814841fcdaf077ae3c7ac06f730d14e7f38cd7ccd9e381

Contents?: true

Size: 328 Bytes

Versions: 17

Compression:

Stored size: 328 Bytes

Contents

describe "NSURL" do

  it "should have a method #open" do
    'test'.nsurl.respond_to?(:open).should == true
  end

  it "should have a method #can_open?" do
    'https://github.com'.nsurl.can_open?.should == true
  end

  it "should have a method #nsdata?" do
    NSData.should === 'https://github.com'.nsurl.nsdata
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
sugarcube-0.20.20 spec/nsurl_spec.rb
sugarcube-0.20.19 spec/nsurl_spec.rb
sugarcube-0.20.18 spec/nsurl_spec.rb
sugarcube-0.20.17 spec/nsurl_spec.rb
sugarcube-0.20.16 spec/nsurl_spec.rb
sugarcube-0.20.15 spec/nsurl_spec.rb
sugarcube-0.20.13 spec/nsurl_spec.rb
sugarcube-0.20.12 spec/nsurl_spec.rb
sugarcube-0.20.11 spec/nsurl_spec.rb
sugarcube-0.20.10 spec/nsurl_spec.rb
sugarcube-0.20.9 spec/nsurl_spec.rb
sugarcube-0.20.8 spec/nsurl_spec.rb
sugarcube-0.20.7 spec/nsurl_spec.rb
sugarcube-0.20.6 spec/nsurl_spec.rb
sugarcube-0.20.5 spec/nsurl_spec.rb
sugarcube-0.20.4 spec/nsurl_spec.rb
sugarcube-0.20.3 spec/nsurl_spec.rb