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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -