Sha256: e5250630543a2425489d4760cab26f2ceb16dd56d02dab2fcbc3120d81fc5e19

Contents?: true

Size: 588 Bytes

Versions: 20

Compression:

Stored size: 588 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

  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

20 entries across 20 versions & 1 rubygems

Version Path
sugarcube-1.3.11 spec/nsurl_spec.rb
sugarcube-1.3.10 spec/nsurl_spec.rb
sugarcube-1.3.9 spec/nsurl_spec.rb
sugarcube-1.3.8 spec/nsurl_spec.rb
sugarcube-1.3.7 spec/nsurl_spec.rb
sugarcube-1.3.6 spec/nsurl_spec.rb
sugarcube-1.3.5 spec/nsurl_spec.rb
sugarcube-1.3.4 spec/nsurl_spec.rb
sugarcube-1.3.3 spec/nsurl_spec.rb
sugarcube-1.3.2 spec/nsurl_spec.rb
sugarcube-1.3.1 spec/nsurl_spec.rb
sugarcube-1.3.0 spec/nsurl_spec.rb
sugarcube-1.1.0 spec/nsurl_spec.rb
sugarcube-1.0.7 spec/nsurl_spec.rb
sugarcube-1.0.6 spec/nsurl_spec.rb
sugarcube-1.0.5 spec/nsurl_spec.rb
sugarcube-1.0.4 spec/nsurl_spec.rb
sugarcube-1.0.3 spec/nsurl_spec.rb
sugarcube-1.0.2 spec/nsurl_spec.rb
sugarcube-1.0.1 spec/nsurl_spec.rb