test/RubyLess/errors.yml in rubyless-0.3.5 vs test/RubyLess/errors.yml in rubyless-0.4.0

- old
+ new

@@ -1,49 +1,49 @@ unknown_global_method: src: "system('echo date')" - res: "Unknown method 'system(\"echo date\")'." + res: "(RubyLessTest): unknown method 'system(String)'." bad_argument_types: src: "strftime(34,'ffoo')" - res: "Unknown method 'strftime(34, \"ffoo\")'." + res: "(RubyLessTest): unknown method 'strftime(Number, String)'." zero_div: src: "1/(id-10)" - tem: "(1/(var1.zip-10) rescue nil)" + tem: "(1/(node.zip-10) rescue nil)" res: "" looping: src: "while(true) do puts 'flood' end" - res: 'Bug! Unknown node-type :while to RubyLess::RubyLessProcessor' + res: "'while' not available in RubyLess." add_two_strings: src: "name + 14" - res: "'var1.name' does not respond to '+(Number)'." + res: "node.name (String): unknown method '+(Number)'." two_arguments_in_hash: src: "dictionary[:one, :two]" - res: "'get_dict' does not respond to '[](Symbol, Symbol)'." + res: "get_dict (StringDictionary): unknown method '[](Symbol, Symbol)'." number_argument: src: "dictionary[43]" - res: "'get_dict' does not respond to '[](Number)'." + res: "get_dict (StringDictionary): unknown method '[](Number)'." string_argument: src: "dictionary[spouse.name]" - res: "'get_dict' does not respond to '[](String)'." + res: "get_dict (StringDictionary): unknown method '[](String)'." symbol_type_not_used_out_of_helper: src: "node.foo" - tem: "'var1' does not respond to 'foo()'." + tem: "node (Dummy): unknown method 'foo()'." optional_arguments_with_dynamic_string: src: "spouse.width(\"nice#{spouse.name}\" => 'pv')" tem: "Invalid key type for hash (should be a literal value, was :dstr)" optional_arguments_bad_type: src: "width(:mode => 12)" - res: "Unknown method 'width({:mode => 12})'." + res: "(RubyLessTest): unknown method 'width(:mode=>Number)'." optional_arguments_bad_argument: src: "width(:xyz => 'pv')" - res: "Unknown method 'width({:xyz => \"pv\"})'." + res: "(RubyLessTest): unknown method 'width(:xyz=>String)'." \ No newline at end of file