test/argument_inspector_test.rb in boson-0.2.1 vs test/argument_inspector_test.rb in boson-0.2.2

- old
+ new

@@ -5,9 +5,13 @@ context "scrape_with_text" do def args_from(file_string) ArgumentInspector.scrape_with_text(file_string, "blah") end + test "parses arguments of class method" do + args_from(" def YAML.blah( filepath )\n").should == [['filepath']] + end + test "parses arguments with no spacing" do args_from("def bong; end\ndef blah(arg1,arg2='val2')\nend").should == [["arg1"], ['arg2', "'val2'"]] end test "parses arguments with spacing" do \ No newline at end of file