Sha256: 3707c8c0b3cd2101d40fcbe0b1e965b7f781feb237d81cd8db145bf0106603e3

Contents?: true

Size: 738 Bytes

Versions: 9

Compression:

Stored size: 738 Bytes

Contents

require "spec_helper"

RSpec.describe "schedule" do
  before :all do
    drop_dummy_database
    remove_project_directory
    create_dummy_project("schedule" => true)
  end

  it "adds the sidekiq-scheduler gem to Gemfile" do
    gemfile_content = IO.read("#{project_path}/Gemfile")
    expect(gemfile_content).to include("gem 'sidekiq-scheduler'")
  end

  it "creates the config with schedule" do
    initializer_content = IO.read("#{project_path}/config/sidekiq.yml")
    expect(initializer_content).to include(":schedule:")
  end

  it "adds scheduler ui to the sidekiq initializer" do
    content = IO.read("#{project_path}/config/initializers/sidekiq.rb")
    expect(content).to include("require 'sidekiq-scheduler/web'")
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
potassium-6.1.0 spec/features/schedule_spec.rb
potassium-6.0.0 spec/features/schedule_spec.rb
potassium-5.2.3 spec/features/schedule_spec.rb
potassium-5.2.2 spec/features/schedule_spec.rb
potassium-5.2.1 spec/features/schedule_spec.rb
potassium-5.2.0 spec/features/schedule_spec.rb
potassium-5.1.4 spec/features/schedule_spec.rb
potassium-5.1.3 spec/features/schedule_spec.rb
potassium-5.1.2 spec/features/schedule_spec.rb