Sha256: 27b89eb200adc26540a8538ab8b8b273811686a3c691cbecf4b04936056ae6dc

Contents?: true

Size: 256 Bytes

Versions: 3

Compression:

Stored size: 256 Bytes

Contents

require 'spec_helper'

describe "Ruby syntax" do
  it "is clean" do
    expect(bogus_warnings).to eq([])
  end

  def bogus_warnings
    warnings.select { |w| w =~ %r{lib/bogus} }
  end

  def warnings
    `ruby -w lib/bogus.rb 2>&1`.split("\n")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bogus-0.1.7 spec/bogus/clean_ruby_spec.rb
bogus-0.1.6 spec/bogus/clean_ruby_spec.rb
bogus-0.1.5 spec/bogus/clean_ruby_spec.rb