Skip to content

Room for improvement #72

Description

@schneems
# frozen_string_literal: true

require_relative "../spec_helper"

module Omgcnb
  RSpec.describe BuildpacksFromDir do
    it "does not error" do
      dir = node_buildpack_dir
      buildpacks = BuildpacksFromDir.new(dir: dir).buildpacks
      expect(buildpacks.count).to eq(0)
    end
end

Gives me:

$ rspec spec/unit/buildpacks_from_dir_spec.rb
Run `$ dead_end /Users/rschneeman/Documents/projects/omgcnb/spec/unit/buildpacks_from_dir_spec.rb` for more options

DeadEnd: Missing `end` detected

This code has a missing `end`. Ensure that all
syntax keywords (`def`, `do`, etc.) have a matching `end`.

file: /Users/rschneeman/Documents/projects/omgcnb/spec/unit/buildpacks_from_dir_spec.rb
simplified:

      3  require_relative "../spec_helper"
    ❯ 5  module Omgcnb



Run `$ dead_end /Users/rschneeman/Documents/projects/omgcnb/spec/unit/buildpacks_from_dir_spec.rb` for more options

DeadEnd: Missing `end` detected

This code has a missing `end`. Ensure that all
syntax keywords (`def`, `do`, etc.) have a matching `end`.

file: /Users/rschneeman/Documents/projects/omgcnb/spec/unit/buildpacks_from_dir_spec.rb
simplified:

      3  require_relative "../spec_helper"
    ❯ 5  module Omgcnb




An error occurred while loading ./spec/unit/buildpacks_from_dir_spec.rb.
Failure/Error: dead_end_original_load(file)

SyntaxError:
  /Users/rschneeman/Documents/projects/omgcnb/spec/unit/buildpacks_from_dir_spec.rb:12: syntax error, unexpected end-of-input, expecting `end'
# /Users/rschneeman/.gem/ruby/3.0.2/gems/dead_end-1.1.7/lib/dead_end/auto.rb:15:in `load'
# /Users/rschneeman/.gem/ruby/3.0.2/gems/dead_end-1.1.7/lib/dead_end/auto.rb:15:in `load'
# /Users/rschneeman/.gem/ruby/3.0.2/gems/dead_end-1.1.7/lib/dead_end/auto.rb:44:in `load'
No examples found.

Finished in 0.00004 seconds (files took 0.47282 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions