Sha256: 132000ed29c8efabf7151e270b70905c35c47c27626dc319cfd15ae848ad82e4

Contents?: true

Size: 487 Bytes

Versions: 6

Compression:

Stored size: 487 Bytes

Contents

require 'rails_helper'

RSpec.describe 'rake rails_rbi:jobs', type: :task do
  let!(:generated_dir_path) { Rails.root.join("sorbet", "rails-rbi", "jobs") }

  it "preloads the Rails environment" do
    expect(task.prerequisites).to include("environment")
  end

  it "generates jobs rbi correctly" do
    task.invoke
    expect_files(
      base_dir: generated_dir_path,
      files: [
        "application_job.rbi",
        "award_house_point_hourglasses.rbi",
      ],
    )
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sorbet-rails-0.7.0 spec/rake_rails_rbi_jobs_spec.rb
sorbet-rails-0.6.5.1 spec/rake_rails_rbi_jobs_spec.rb
sorbet-rails-0.6.5 spec/rake_rails_rbi_jobs_spec.rb
sorbet-rails-0.6.4 spec/rake_rails_rbi_jobs_spec.rb
sorbet-rails-0.6.3 spec/rake_rails_rbi_jobs_spec.rb
sorbet-rails-0.6.2 spec/rake_rails_rbi_jobs_spec.rb