Sha256: 4a5da2f53fc36b46541e2dc463e24e1b051ecf78fb7c45ecd4ff62eea372a79c

Contents?: true

Size: 392 Bytes

Versions: 6

Compression:

Stored size: 392 Bytes

Contents

require 'spec_helper'

describe Guard::ConsistencyFail do
  describe "when passing an environment option" do
    it "calls system with 'export RAILS_ENV=test;' call first" do
      @delayed = Guard::ConsistencyFail.new([], {:environment => 'test'})
      @delayed.should_receive(:system).with("export RAILS_ENV=test; consistency_fail").and_return(true)
      @delayed.start
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
guard-consistency_fail-0.0.10 spec/guard/consistency_fail_spec.rb
guard-consistency_fail-0.0.9 spec/guard/consistency_fail_spec.rb
guard-consistency_fail-0.0.8 spec/guard/consistency_fail_spec.rb
guard-consistency_fail-0.0.7 spec/guard/consistency_fail_spec.rb
guard-consistency_fail-0.0.6 spec/guard/consistency_fail_spec.rb
guard-consistency_fail-0.0.5 spec/guard/consistency_fail_spec.rb