Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
6 committed Jul 7, 2017
1 parent bba9d73 commit 72ee744
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 52 deletions.
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
--format documentation
--color
--require spec_helper
11 changes: 0 additions & 11 deletions bin/egad

This file was deleted.

12 changes: 6 additions & 6 deletions egad.gemspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# coding: utf-8
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "egad/version"
require "rubocop/egad/version"

Gem::Specification.new do |spec|
spec.name = "egad"
spec.version = Egad::VERSION
spec.version = RuboCop::Egad::VERSION
spec.authors = ["Peter Graham"]
spec.email = ["[email protected]"]

Expand All @@ -23,11 +23,11 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = ">= 2.3.0"

spec.add_dependency "activesupport", "5.1.1"
spec.add_dependency "cri", "2.9.1"
spec.add_dependency "paint", "2.0.0"
spec.add_dependency "activesupport", ">= 4"

spec.add_development_dependency "bundler", "~> 1.15"
spec.add_runtime_dependency 'rubocop', '>= 0.48.0'

spec.add_development_dependency "bundler", "~> 1.14"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rspec-its"
Expand Down
12 changes: 6 additions & 6 deletions lib/egad.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
require "active_support"
require "active_support/core_ext"
require "cri"
require "find"
require "paint"
require "rubocop"

require "egad/cli"
require "egad/version"
require "rubocop/egad/version"
require "rubocop/cop/egad/add_index"

module Egad
module RuboCop
module Egad
end
end
15 changes: 0 additions & 15 deletions lib/egad/cli.rb

This file was deleted.

3 changes: 0 additions & 3 deletions lib/egad/version.rb

This file was deleted.

6 changes: 6 additions & 0 deletions lib/rubocop/cop/egad/add_index.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module RuboCop
module Cop
module Egad
end
end
end
5 changes: 5 additions & 0 deletions lib/rubocop/egad/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module RuboCop
module Egad
VERSION = "0.1.0"
end
end
10 changes: 2 additions & 8 deletions spec/egad_spec.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
require "spec_helper"

RSpec.describe Egad do
describe RuboCop::Egad do
it "has a version number" do
expect(Egad::VERSION).not_to be nil
end

it "does something useful" do
expect(false).to eq(true)
expect(described_class::VERSION).not_to be nil
end
end
7 changes: 4 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
require "bundler/setup"
require "egad"
require "rspec/collection_matchers"
require "rspec/its"

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = ".rspec_status"

# Disable RSpec exposing methods globally on `Module` and `main`
config.disable_monkey_patching!

config.expect_with :rspec do |c|
c.syntax = :expect
end
config.filter_run :focus
config.run_all_when_everything_filtered = true
end

0 comments on commit 72ee744

Please sign in to comment.