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.8.5 spec/rake_spec.rb
deimos-ruby-1.8.4 spec/rake_spec.rb
deimos-ruby-1.8.3 spec/rake_spec.rb
deimos-ruby-1.8.2 spec/rake_spec.rb
deimos-ruby-1.8.2.pre.beta2 spec/rake_spec.rb
deimos-ruby-1.8.2.pre.beta1 spec/rake_spec.rb
deimos-ruby-1.8.1.pre.beta9 spec/rake_spec.rb
deimos-ruby-1.8.1.pre.beta8 spec/rake_spec.rb
deimos-ruby-1.8.1.pre.beta7 spec/rake_spec.rb
deimos-ruby-1.8.1.pre.beta6 spec/rake_spec.rb
deimos-ruby-1.8.1.pre.beta5 spec/rake_spec.rb
deimos-ruby-1.8.1.pre.beta4 spec/rake_spec.rb
deimos-ruby-1.8.1.pre.beta3 spec/rake_spec.rb
deimos-ruby-1.8.1.pre.beta2 spec/rake_spec.rb
deimos-ruby-1.8.1.pre.beta1 spec/rake_spec.rb
deimos-ruby-1.8.0.pre.beta2 spec/rake_spec.rb
deimos-ruby-1.8.0.pre.beta1 spec/rake_spec.rb
deimos-ruby-1.7.0.pre.beta1 spec/rake_spec.rb