Sha256: c4ca7525c125781743db00efa131dd8647f47f72cc6ff9de79b2eb43e9ee6777

Contents?: true

Size: 611 Bytes

Versions: 6

Compression:

Stored size: 611 Bytes

Contents

require 'spec_helper'

describe Guard::RailsAssets::CliRunner do

  it 'should run the command' do
    subject.stub(:system)
    subject.should_receive(:system).with("RAILS_ENV=test bundle exec rake assets:clean assets:precompile")
    subject.compile_assets
  end

  context 'with production environment' do
    subject { Guard::RailsAssets::CliRunner.new(:rails_env => :production) }
    it 'should run the command' do
      subject.stub(:system)
      subject.should_receive(:system).with("RAILS_ENV=production bundle exec rake assets:clean assets:precompile")
      subject.compile_assets
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
guard-rails-assets-0.1.2 spec/guard/rails-assets/cli_runner_spec.rb
guard-rails-assets-0.1.1 spec/guard/rails-assets/cli_runner_spec.rb
guard-rails-assets-0.1.0 spec/guard/rails-assets/cli_runner_spec.rb
guard-rails-assets-0.0.9 spec/guard/rails-assets/cli_runner_spec.rb
guard-rails-assets-0.0.8 spec/guard/rails-assets/cli_runner_spec.rb
guard-rails-assets-0.0.7 spec/guard/rails-assets/cli_runner_spec.rb