I 'm trying to make a of my first application on ruby ... Thats's my test file
require File.dirname(__FILE__) + '/../test_helper'
class SupplierTest < ActiveSupport::TestCase
fixtures :suppliers
def test_name
supplier=Supplier.create(:name => 'juan' , :province => nil)
assert_equal 'juan' , supplier.get_name
end
end
and the fixture
juan:
id:1
name:juan
province:nil
and the result is
Psych::SyntaxError: (<unknown>): could not find expected ':' while scanning a simple key at line 8 column 1