          (ruby-parser " a ")
          (ruby-parser "\n\t a\n\t ")
          (ruby-parser " \t\na \t\n ")
-         [[:var_ref "a"]])))
+         [[:var-ref "a"]])))
 
 (deftest assignment
   (is (unambigous? "a = 1"))

  (is (= (ruby-parser "a;b")
         (ruby-parser "a\nb")
         (ruby-parser "a \n b")
         [[:var_ref "a"]
          [:var_ref "b"]])))

(deftest rewrite-mutating-assignment
  (is (= (rewrite-assignment-mutate :var-name "+=" :arg)
         [:assignment :var-name [:method_call [:var_ref :var-name] "+" :arg]])))

(deftest rewrite-mutating-bracket-assignment
  (is (= (rewrite-bracket-assignment-mutate :obj :idx "-=" :val)
         [:method_call :obj "[]=" :idx
          [:method_call
           [:method_call :obj "[]" :idx]
           "-"
           :val]])))

  (is (= (ruby-parser "a = b")
         [[:assignment
           "a"
           [:var-ref "b"]]])))

(deftest mutating-assignment
  (is (unambigous?    "a += 1"))
  (is (= (ruby-parser "a += 1")
         [[:assignment-mutate "a" "+=" [:number "1"]]]))
  (is (unambigous?    "a -= 1"))
  (is (= (ruby-parser "a -= 1")
         [[:assignment-mutate "a" "-=" [:number "1"]]])))

(deftest assignment-and-method-call
  (is (unambigous? "a = o.m"))
  (is (= (ruby-parser "a = o.m")
         [[:assignment
           "a"
           [:method-call
            [:var-ref "o"]
            "m"]]])))

(deftest method-calls
