Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Problems running steak with Spork -- helpers not loaded correctly
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jack Kinsella  
View profile  
 More options Apr 15 2011, 5:29 am
From: Jack Kinsella <jack.kinse...@gmail.com>
Date: Fri, 15 Apr 2011 02:29:37 -0700 (PDT)
Local: Fri, Apr 15 2011 5:29 am
Subject: Problems running steak with Spork -- helpers not loaded correctly
Hey,

Steak is working great for me without Spork but whenever I run it
using Spork I get "undefined local variable" errors whenever my code
hits a helper method. Has anyone had any similar issues? My spork (if
that's relevant).

require 'rubygems'
require 'spork'
ENV["RAILS_ENV"] ||= 'test'

Spork.prefork do
  # Loading more in this block will cause your tests to run faster.
However,
  # if you change any configuration or code from libraries loaded
here, you'll
  # need to restart spork for it take effect.
  require File.expand_path("../../config/environment", __FILE__)
  require 'rspec/rails'

  # Requires supporting ruby files with custom matchers and macros,
etc,
  # in spec/support/ and its subdirectories.
  Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
end

Spork.each_run do
  # This code will be run each time you run your specs.
  Dir[Rails.root.join("site/app/**/*.rb")].each {|f| require f}
  load "#{Rails.root}/spec/global_test_helper.rb"

  require "#{Rails.root}/spec/factories.rb"
end

Many Thanks,

Jack Kinsella


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tiago Albineli Motta  
View profile  
 More options Apr 17 2011, 8:50 am
From: Tiago Albineli Motta <timo...@gmail.com>
Date: Sun, 17 Apr 2011 05:50:12 -0700 (PDT)
Local: Sun, Apr 17 2011 8:50 am
Subject: Re: Problems running steak with Spork -- helpers not loaded correctly
can you put all line of your error message?

On Apr 15, 6:29 am, Jack Kinsella <jack.kinse...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jack Kinsella  
View profile  
 More options Apr 18 2011, 4:24 am
From: Jack Kinsella <jack.kinse...@gmail.com>
Date: Mon, 18 Apr 2011 01:24:18 -0700 (PDT)
Local: Mon, Apr 18 2011 4:24 am
Subject: Re: Problems running steak with Spork -- helpers not loaded correctly
Sure thing Tiago. When I run the acceptance tests I get this
backtrace:

     Failure/Error: login_as_admin
     ActionView::Template::Error:
       undefined local variable or method `typekit_fonts' for
#<#<Class:0x4fd8f78>:0x4fd718c>
     # ./site/app/views/layouts/spree_application.html.erb:6:in `block
in
_site_app_views_layouts_spree_application_html_erb__511333542_41843800_4659 09208'
     # ./site/app/views/layouts/spree_application.html.erb:3:in
`_site_app_views_layouts_spree_application_html_erb__511333542_41843800_465 909208'
     # <internal:prelude>:10:in `synchronize'
     # ./spec/acceptance/support/helpers.rb:18:in `login'
     # ./spec/acceptance/support/helpers.rb:12:in `login_as_admin'
     # ./spec/acceptance/buyer_inquiries_count_spec.rb:16:in `block (2
levels) in <top (required)>'

The supposedly undefined local variable or method is defined in my
ApplicationHelper and works fine in non sporked steaks. I can't figure
out the methods don't get included in the sporked process.

On Apr 17, 1:50 pm, Tiago Albineli Motta <timo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kai Schlamp  
View profile  
 More options Apr 27 2011, 11:14 pm
From: Kai Schlamp <kai.schl...@googlemail.com>
Date: Wed, 27 Apr 2011 20:14:20 -0700 (PDT)
Local: Wed, Apr 27 2011 11:14 pm
Subject: Re: Problems running steak with Spork -- helpers not loaded correctly
Same problem here. Paths and helper methods under acceptance/support
are not accessible (undefined local variable or method). I am also
using Spork (latest from Github) and Ruby 1.9.2 under Rails 3.0.7.

On Apr 15, 11:29 am, Jack Kinsella <jack.kinse...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »