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

- old
+ new

@@ -6,18 +6,18 @@ before(:all) do @string = "hello" end it "should provide String#format_chars" do - @string.respond_to?('format_chars').should == true + String.method_defined?(:format_chars).should == true end it "should provide String#format_bytes" do - @string.respond_to?('format_bytes').should == true + String.method_defined?(:format_bytes).should == true end it "should provide String#random_case" do - @string.respond_to?('random_case').should == true + String.method_defined?(:random_case).should == true end describe "format_chars" do it "should format each character in the String" do @string.format_chars { |c|