Fig Newton load issues

152 views
Skip to first unread message

Andy Brown

unread,
Dec 22, 2014, 10:45:57 AM12/22/14
to cucumber-...@googlegroups.com
Hi,

First of all, the book is great super informative. I've just run into one problem that I can't resolve.

I can't get the fig_newton gem to load a .yml

Have created a clean project with testgen, structured as so

project
  -config
    -environments
      local.yml
  -features
    -step_definitions
    -support
      -pages
     env.rb
     hooks.rb
cucumber.yml
etc..


env.rb contains:

require 'rspec'
require 'page-object'
require 'fig_newton'

FigNewton.load('local.yml')
      
local.yml contains:
base_url: http://localhost:3000
      
I'm getting an error:
C:\Ruby193\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/workspace/Ruby/junk/features/support/env.rb
C:/Ruby193/lib/ruby/gems/1.9.1/gems/yml_reader-0.4/lib/yml_reader.rb:27:in `read': No such file or directory - config/environments/local.yml (Errno::ENOENT)
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/yml_reader-0.4/lib/yml_reader.rb:27:in `load'

Despite checking over and again that local.yml is exactly in the place it can't be found.

Am I missing something incredibly obvious here?

 

Andy Brown

unread,
Dec 22, 2014, 10:57:10 AM12/22/14
to cucumber-...@googlegroups.com
update:
If I add the full path
'C:\workspace\Ruby\junk\config\environments\local.yml
 then the file can be found by Fig Newton, but this isn't too useful 
Reply all
Reply to author
Forward
0 new messages