spec/formatting/http/string_spec.rb in ronin-0.2.3 vs spec/formatting/http/string_spec.rb in ronin-0.2.4

- old
+ new

@@ -1,31 +1,27 @@ require 'ronin/formatting/http' require 'spec_helper' describe String do - before(:all) do - @string = "mod % 3" - end - it "should provide String#uri_encode" do - @string.respond_to?('uri_encode').should == true + String.method_defined?(:uri_encode).should == true end it "should provide String#uri_decode" do - @string.respond_to?('uri_decode').should == true + String.method_defined?(:uri_decode).should == true end it "should provide String#uri_escape" do - @string.respond_to?('uri_escape').should == true + String.method_defined?(:uri_escape).should == true end it "should provide String#uri_unescape" do - @string.respond_to?('uri_unescape').should == true + String.method_defined?(:uri_unescape).should == true end it "should provide String#format_http" do - @string.respond_to?('format_http').should == true + String.method_defined?(:format_http).should == true end describe "uri_encode" do before(:all) do @uri_unencoded = "mod % 3"