Sha256: 46ea5ec4ecfd2324f4e656502c9014e080937504eaff7f0d2f9c88f82362ca48

Contents?: true

Size: 698 Bytes

Versions: 22

Compression:

Stored size: 698 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
    NSData.should === 'https://github.com'.nsurl.nsdata
  end

  it "should have a method #nsurlrequest" do
    NSURLRequest.should === 'https://github.com'.nsurl.nsurlrequest
  end

  it "should have a method #nsmutableurlrequest" do
    NSMutableURLRequest.should === 'https://github.com'.nsurl.nsmutableurlrequest
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
sugarcube-1.7.0 spec/nsurl_spec.rb
sugarcube-1.6.3 spec/nsurl_spec.rb
sugarcube-1.6.2 spec/nsurl_spec.rb
sugarcube-1.6.1 spec/nsurl_spec.rb
sugarcube-1.6.0 spec/nsurl_spec.rb
sugarcube-1.5.9 spec/nsurl_spec.rb
sugarcube-1.5.8 spec/nsurl_spec.rb
sugarcube-1.5.7 spec/nsurl_spec.rb
sugarcube-1.5.6 spec/nsurl_spec.rb
sugarcube-1.5.5 spec/nsurl_spec.rb
sugarcube-1.5.4 spec/nsurl_spec.rb
sugarcube-1.5.3 spec/nsurl_spec.rb
sugarcube-1.5.2 spec/nsurl_spec.rb
sugarcube-1.5.1 spec/nsurl_spec.rb
sugarcube-1.5.0 spec/nsurl_spec.rb
sugarcube-1.4.6 spec/nsurl_spec.rb
sugarcube-1.4.5 spec/nsurl_spec.rb
sugarcube-1.4.4 spec/nsurl_spec.rb
sugarcube-1.4.3 spec/nsurl_spec.rb
sugarcube-1.4.2 spec/nsurl_spec.rb