Sha256: ccc5550fd49a04001778e360d0c6b827179a604efb1a6e35f3dd39b1025fd8cb

Contents?: true

Size: 490 Bytes

Versions: 98

Compression:

Stored size: 490 Bytes

Contents

# frozen_string_literal: true

require 'rake'
require 'rails'
Rails.logger = Logger.new(STDOUT)
load("#{__dir__}/../lib/tasks/deimos.rake")

if Rake.application.lookup(:environment).nil?
  Rake::Task.define_task(:environment)
end

describe 'Rakefile' do
  it 'should start listeners' do
    runner = instance_double(Phobos::CLI::Runner)
    expect(Phobos::CLI::Runner).to receive(:new).and_return(runner)
    expect(runner).to receive(:run!)
    Rake::Task['deimos:start'].invoke
  end
end

Version data entries

98 entries across 98 versions & 2 rubygems

Version Path
deimos-ruby-1.24.2 spec/rake_spec.rb
deimos-ruby-1.24.1 spec/rake_spec.rb
deimos-ruby-1.24.0 spec/rake_spec.rb
deimos-ruby-1.23.3 spec/rake_spec.rb
deimos-ruby-1.23.2 spec/rake_spec.rb
deimos-ruby-1.23.1.pre.beta6 spec/rake_spec.rb
deimos-ruby-1.23.1.pre.beta5 spec/rake_spec.rb
deimos-ruby-1.23.1.pre.beta4 spec/rake_spec.rb
deimos-ruby-1.23.1.pre.beta3 spec/rake_spec.rb
deimos-ruby-1.23.1.pre.beta2 spec/rake_spec.rb
deimos-ruby-1.23.1.pre.beta1 spec/rake_spec.rb
deimos-ruby-1.23.0 spec/rake_spec.rb
deimos-ruby-1.22.5 spec/rake_spec.rb
deimos-ruby-1.22.4 spec/rake_spec.rb
deimos-ruby-1.22.3 spec/rake_spec.rb
deimos-ruby-1.22.2 spec/rake_spec.rb
deimos-ruby-1.22.1 spec/rake_spec.rb
deimos-ruby-1.22 spec/rake_spec.rb
deimos-ruby-1.20.1 spec/rake_spec.rb
deimos-ruby-1.20.0 spec/rake_spec.rb