Sha256: 0213d4bbd4e4993bfc51931557cf2770b55932e7c20595565b6aaa94f8957e4d
Contents?: true
Size: 664 Bytes
Versions: 1
Compression:
Stored size: 664 Bytes
Contents
require 'guard/rails-assets/cli_runner' RSpec.describe Guard::RailsAssets::CliRunner do it 'should run the command' do allow(subject).to receive(:system) expect(subject).to receive(:system).with('bundle exec rake assets:clean assets:precompile RAILS_ENV=test') subject.compile_assets end context 'with production environment' do subject { Guard::RailsAssets::CliRunner.new(rails_env: :production) } it 'should run the command' do allow(subject).to receive(:system) expect(subject).to receive(:system).with('bundle exec rake assets:clean assets:precompile RAILS_ENV=production') subject.compile_assets end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
guard-rails-assets-0.1.6 | spec/guard/rails-assets/cli_runner_spec.rb |