Sha256: 5ba8352da665c44865e712b4877fc5276f40c962b64d3599f88a482bfb0c2257

Contents?: true

Size: 528 Bytes

Versions: 9

Compression:

Stored size: 528 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 # rubocop:disable RSpec/DescribeClass
  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

9 entries across 9 versions & 1 rubygems

Version Path
deimos-ruby-1.6.4 spec/rake_spec.rb
deimos-ruby-1.6.3 spec/rake_spec.rb
deimos-ruby-1.6.2 spec/rake_spec.rb
deimos-ruby-1.6.1 spec/rake_spec.rb
deimos-ruby-1.6.0 spec/rake_spec.rb
deimos-ruby-1.6.0.pre.beta1 spec/rake_spec.rb
deimos-ruby-1.5.0.pre.beta2 spec/rake_spec.rb
deimos-ruby-1.3.0.pre.beta5 spec/rake_spec.rb
deimos-ruby-1.3.0.pre.beta4 spec/rake_spec.rb