spec/ios/nsstring_spec.rb in sugarcube-3.4.0 vs spec/ios/nsstring_spec.rb in sugarcube-3.4.1

- old
+ new

@@ -5,9 +5,16 @@ url.should.be.kind_of(NSURL) url.absoluteString.should == 'https://github.com/status' url.host.should == 'github.com' end + it "should have a #nsurl method with baseURL parametor" do + url = 'status'.nsurl('https://github.com'.nsurl) + url.should.be.kind_of(NSURL) + url.absoluteString.should == 'https://github.com/status' + url.host.should == 'github.com' + end + it "should have a #nsdata method" do data = 'test'.nsdata data.should.be.kind_of(NSData) bytes = data.bytes bytes[0].should == 116