Sha256: 7a5ab9da61afbda4a081fd566325c775d53cb2267a62f2e94efc113e955c90bf

Contents?: true

Size: 722 Bytes

Versions: 54

Compression:

Stored size: 722 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 #nsurl" do
    url = 'https://github.com'.nsurl
    url.nsurl.should == url
  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
    'https://github.com'.nsurl.nsdata.should.be.kind_of(NSData)
  end

  it "should have a method #nsurlrequest" do
    'https://github.com'.nsurl.nsurlrequest.should.be.kind_of(NSURLRequest)
  end

  it "should have a method #nsmutableurlrequest" do
    'https://github.com'.nsurl.nsmutableurlrequest.should.be.kind_of(NSMutableURLRequest)
  end

end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
sugarcube-3.0.4 spec/ios/nsurl_spec.rb
sugarcube-3.0.3 spec/ios/nsurl_spec.rb
sugarcube-3.0.2 spec/ios/nsurl_spec.rb
sugarcube-3.0.1 spec/ios/nsurl_spec.rb
sugarcube-3.0.0 spec/ios/nsurl_spec.rb
sugarcube-2.12.3 spec/ios/nsurl_spec.rb
sugarcube-2.12.2 spec/ios/nsurl_spec.rb
sugarcube-2.12.1 spec/ios/nsurl_spec.rb
sugarcube-2.12.0 spec/ios/nsurl_spec.rb
sugarcube-2.11.1 spec/ios/nsurl_spec.rb
sugarcube-2.11.0 spec/ios/nsurl_spec.rb
sugarcube-2.10.0 spec/ios/nsurl_spec.rb
sugarcube-2.9.1 spec/ios/nsurl_spec.rb
sugarcube-2.8.2 spec/ios/nsurl_spec.rb
sugarcube-2.8.1 spec/ios/nsurl_spec.rb
sugarcube-2.8.0 spec/ios/nsurl_spec.rb
sugarcube-2.7.1 spec/ios/nsurl_spec.rb
sugarcube-2.7.0 spec/ios/nsurl_spec.rb
sugarcube-2.6.0 spec/ios/nsurl_spec.rb
sugarcube-2.5.0 spec/ios/nsurl_spec.rb