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-4.0.0 spec/ios/nsurl_spec.rb
sugarcube-3.5.0 spec/ios/nsurl_spec.rb
sugarcube-3.4.2 spec/ios/nsurl_spec.rb
sugarcube-3.4.1 spec/ios/nsurl_spec.rb
sugarcube-3.4.0 spec/ios/nsurl_spec.rb
sugarcube-3.3.7 spec/ios/nsurl_spec.rb
sugarcube-3.3.6 spec/ios/nsurl_spec.rb
sugarcube-3.3.5 spec/ios/nsurl_spec.rb
sugarcube-3.3.4 spec/ios/nsurl_spec.rb
sugarcube-3.3.3 spec/ios/nsurl_spec.rb
sugarcube-3.3.2 spec/ios/nsurl_spec.rb
sugarcube-3.3.1 spec/ios/nsurl_spec.rb
sugarcube-3.3.0 spec/ios/nsurl_spec.rb
sugarcube-3.2.0 spec/ios/nsurl_spec.rb
sugarcube-3.1.1 spec/ios/nsurl_spec.rb
sugarcube-3.1.0 spec/ios/nsurl_spec.rb
sugarcube-3.0.8 spec/ios/nsurl_spec.rb
sugarcube-3.0.7 spec/ios/nsurl_spec.rb
sugarcube-3.0.6 spec/ios/nsurl_spec.rb
sugarcube-3.0.5 spec/ios/nsurl_spec.rb