Questions tagged [zeus]

Zeus is an environment preloader for Ruby, so that your development tasks such as console, server, generate, and specs/tests take less time to load.

Zeus is an environment preloader for Ruby, so that your development tasks such as console, server, generate, and specs/tests take less time to load. See the docs for more information.

99 questions
18
votes
2 answers

Enable / disable session state per controller / action method

We are building an ASP.NET MVC application which will be deployed behind a hardware load balancer that supports, among other things, caching. Our proposal is to manually define which URL patterns should be cached by the load balancer. This will be…
jamiecon
  • 1,770
  • 3
  • 19
  • 32
16
votes
2 answers

Zeus + FactoryGirl::Syntax::Methods. undefined method `create'

I have: RSpec.configure do |config| config.include FactoryGirl::Syntax::Methods end which properly work with simple rspec spec/model/user_spec.rb (allows me to use create(:user), not FactoryGirl.create(:user)). But if I use zeus rspec…
freemanoid
  • 14,592
  • 6
  • 54
  • 77
14
votes
1 answer

Rails 4.1 - Why Spring?

Now with Spring built-in with rails 4.1, I am curious about why the dev-team chose Spring over the others (Zeus and Spork). Why did they choose Spring?
karlingen
  • 13,800
  • 5
  • 43
  • 74
14
votes
1 answer

How to run Rails console in test environment with Zeus?

What I want to do is to run rails console test but with Zeus gem, something like: zeus console test Thanks a lot in advance!
cortex
  • 5,036
  • 3
  • 31
  • 41
13
votes
5 answers

Unable to accept socket connection. It looks like Zeus is already running. If not, remove .zeus.sock and try again

Zeus is a great tool when working on a fairly large Rails projects to lower the load time of Rails application and running the test suite. However after sometime I have started to face this problem with all my projects on starting zeus: I did some…
Smoke
  • 1,052
  • 1
  • 10
  • 24
9
votes
1 answer

zeus rspec fails include required files, but rspec alone does fine

It's weird issue, zeus start running smoothly. rspec spec/ does it's job flawless. My spec_helper config is # encoding: UTF-8 require 'rubygems' # This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||=…
Max Prokopov
  • 1,308
  • 11
  • 16
8
votes
1 answer

Zeus throwing errors when running RSpec

I'm running in to a situation which seems to happen to many users of Zeus and RSpec. Let's say I have the following spec: # spec/views/messages/show.html.erb require 'spec_helper' describe "messages/show.html.erb" do it "displays the text…
jamesconant
  • 1,405
  • 1
  • 12
  • 18
7
votes
1 answer

Zeus fails when testing with Rspec

When I run this command: rspec spec/controllers/messages_controller_spec.rb I get this: Finished in 0.54446 seconds 2 examples, 0 failures Randomized with seed 6226 It's good. However when I run this command: zeus rspec…
Furkan Ayhan
  • 1,349
  • 9
  • 16
6
votes
0 answers

RubyMine RSpec run configuration with Dockerized Zeus

Context I'm Dockerizing the development environment for a legacy Rails monolith, using a Dockerfile written for local env + docker-compose using that image to start different services. Goal I would like to run specs from RubyMine with just…
thilonel
  • 61
  • 2
6
votes
4 answers

Spring vs. Zeus performance issue: Spring not running tests much faster after 1st run?

So I'm trying to improve my test execution time, and have been following some of the excellent advice out there (most notably, Railscasts 412). Zeus seems to be working fine (other than the weirdness that requires you to type zeus test test in order…
nlh
  • 1,055
  • 1
  • 10
  • 15
5
votes
1 answer

DEBUGGER: Attaching after process fork to child process

When using the ruby debug gem, I often see the following output printed out: DEBUGGER: Attaching after process fork to child process where is a parent process id like 12345 and is a newly forked child process id, like…
stwr667
  • 1,566
  • 1
  • 16
  • 31
5
votes
0 answers

zeus is getting hung on boot process

I'm using zeus 0.15.4 on my project and it's recently stopped working. I tried updating zeus but it still gets to the boot phase and just hangs there (coloured blue for connecting). If I start zeus like so in my rails 3.2.x project zeus --log…
map7
  • 5,096
  • 6
  • 65
  • 128
5
votes
2 answers

RSpec 3.1 with Zeus, should I require 'rspec/rails' in spec_helper?

With rspec-rails 3.0+ the test setup is split into spec_helper and rails_helper and I noticed that the generated spec_helper does not require 'rspec/rails'. This causes zeus to crash: spec_helper.rb:5:in `': undefined method…
max
  • 96,212
  • 14
  • 104
  • 165
5
votes
1 answer

Zeus doesn't start on Rails 4.1 Ruby 2.1.1 setup?

Here is my abbreviated setup: ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0] rails (4.1.0.rc1) rvm 1.25.22 zeus (0.13.3) Whenever I run "zeus start" I get a full crash: boot └── default_bundle ├── test_environment │  └──…
John Trichereau
  • 626
  • 9
  • 22
5
votes
2 answers

Ruby Rbenv tries to run Zeus from Bundle despite it being a global gem (Using ZSH)

(Update: Problem caused by zsh, see accepted answer) Long ago, I followed this great guide to using Rbenv with bundler https://gist.github.com/1384279 and all was well in Ruby Land. (I installed it correctly) Bundler gem is installed globally for…
xxjjnn
  • 14,591
  • 19
  • 61
  • 94
1
2 3 4 5 6 7