[rspec-users] [cucumber] Sinatra "polyglot" app path error

11 views
Skip to first unread message

beenimble

unread,
Mar 20, 2009, 9:36:52 AM3/20/09
to rspec...@rubyforge.org
In case of the following error when using Cucumber with Sinatra:

No such file or directory - /usr/local/lib/ruby/gems/1.8/gems/
polyglot-0.2.4/lib/views/index.erb

Implement env.rb as specified at the following link so your app and
its view path may be found (this supersedes prior examples):

http://github.com/aslakhellesoy/cucumber/blob/a478b71173a1ff92d6b5d1808e377a0a1b7aac2f/examples/sinatra/features/support/env.rb

[Note comment: "Force the application name because polyglot breaks the
auto-detection logic."]
_______________________________________________
rspec-users mailing list
rspec...@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

aslak hellesoy

unread,
Mar 21, 2009, 11:53:23 AM3/21/09
to rspec-users
On Fri, Mar 20, 2009 at 9:36 AM, beenimble <been...@gmail.com> wrote:
In case of the following error when using Cucumber with Sinatra:

No such file or directory - /usr/local/lib/ruby/gems/1.8/gems/
polyglot-0.2.4/lib/views/index.erb

Implement env.rb as specified at the following link so your app and
its view path may be found (this supersedes prior examples):

http://github.com/aslakhellesoy/cucumber/blob/a478b71173a1ff92d6b5d1808e377a0a1b7aac2f/examples/sinatra/features/support/env.rb

Thanks - code and wiki updated:

http://github.com/aslakhellesoy/cucumber/commit/29d83d51907b8bfa455c1a2e365c72d77655e85c
http://wiki.github.com/aslakhellesoy/cucumber/sinatra

Thanks for helping Sinatra work well with Cucumber - feel free to update the wiki and code with other tips and tricks.

Aslak
 
Reply all
Reply to author
Forward
0 new messages