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.4.1 spec/nsurl_spec.rb
sugarcube-1.4.0 spec/nsurl_spec.rb