On Nov 28, 1:39 pm, Hillary <[email protected]> wrote:
> Now i'm getting a unexpected Tconstant error. My updated code is below:
>
>     TAZA_ROOT = " File.dirname(__FILE__)}/../config/"
>     $DB =
> DB.ado(YAML.load_file(File.read(File.join(TAZA_ROOT,'database.yml')))ENV['TAZA_ENV'])
>
> console output:
> $ rake spec:isolation:insight:smoke_test_page TAZA_ENV=qa
> c:/Ruby192/bin/ruby.exe -S rspec --require taza --format html --out
> artifacts/111128_1327/index.html --format p --format
> FailingExamplesFormatter --out artifacts/111128_1327/failing_examples.txt
> ./spec/isolation/insight/smoke_tes
> t_page_spec.rb
> c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
> `require': C:/Documents and Settings/hhueter/My Documents/Aptana Studio 3
> Workspace/QA_Global/Automation/MAIN/Regression-refactor/spec/spec_helper.rb:43:
> syntax
>  error, unexpected tCONSTANT, expecting ')' (SyntaxError)
> ...TAZA_ROOT, 'database.yml')))ENV['TAZA_ENV'])

As it says, this is a syntax error (i.e. not valid ruby code).  You
want [ENV['TAZA_ENV']] (my original message said to replace 'TAZA_ENV'
with ENV['TAZA_ENV'], and you had ['TAZA_ENV'] in the original post).

Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to