ruby on rails - ActiveRecord::Fixture::FormatError: a YAML error occurred parsing -


I'm trying to make my first application on Ruby ... this is my test file

  is required File.dirname (__ file__) + '/../test_helper' class Supplier Teest & lt; ActiveSupport :: Test Season fixtures: suppliers DEF test_name supplier = supplier.Create (: name = & gt; 'JUAN', PROVISION = & gt; NIL) assert_equal 'juan', supplier.atenam and end   

and stability

  Juan: ID: 1 name: Juan province: zero   

and the results

  Psych :: Syntax Error: (& lt; Unknown & gt;): On Line 8 Column 1, ':' could not be expected while scanning a simple key    < p> 

YAMAL requires a space between : and the value, so try updating your stability on:

  juan: id: 1 name: juan province:   

(written in zero province will be "zero" ). Leaving it blank will be a true zero value)

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -