Sha256: deadf5e55c71cec638f8c0ac46c54e0aa40e855ef79402e1ebfeafcb89285b3c
Contents?: true
Size: 495 Bytes
Versions: 2
Compression:
Stored size: 495 Bytes
Contents
require 'spec_helper' describe Guard::Delayed do describe "when passing an environment option" do it "calls system with 'export RAILS_ENV=test;' call first" do @delayed = Guard::Delayed.new([], {:environment => 'test'}) @delayed.should_receive(:system).with("export RAILS_ENV=test; script/delayed_job stop").and_return(true) @delayed.should_receive(:system).with("export RAILS_ENV=test; script/delayed_job start").and_return(true) @delayed.start end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
guard-delayed-0.2.0 | spec/guard/delayed_spec.rb |
guard-delayed-0.1.2 | spec/guard/delayed_spec.rb |