Skip to content

Commit

Permalink
Fix spec folders structure
Browse files Browse the repository at this point in the history
  • Loading branch information
rymai committed Nov 21, 2013
1 parent d9e3775 commit 583c38e
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Guardfile
@@ -1,5 +1,5 @@
guard :minitest do
watch(%r{^spec/(.*)_spec\.rb})
watch(%r{^lib/(.*/)?([^/]+)\.rb}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
watch(%r{^(lib/.*/)?([^/]+)\.rb}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
watch(%r{^spec/spec_helper\.rb}) { 'spec' }
end
1 change: 0 additions & 1 deletion lib/guard/minitest.rb
@@ -1,4 +1,3 @@
# encoding: utf-8
require 'guard'
require 'guard/plugin'

Expand Down
1 change: 0 additions & 1 deletion lib/guard/minitest/inspector.rb
@@ -1,4 +1,3 @@
# encoding: utf-8
module Guard
class Minitest
class Inspector
Expand Down
1 change: 0 additions & 1 deletion lib/guard/minitest/notifier.rb
@@ -1,4 +1,3 @@
# encoding: utf-8
require 'guard/notifier'

module Guard
Expand Down
1 change: 0 additions & 1 deletion lib/guard/minitest/reporter.rb
@@ -1,4 +1,3 @@
# encoding: utf-8
require 'minitest'
require 'guard/minitest/notifier'

Expand Down
1 change: 0 additions & 1 deletion lib/guard/minitest/reporters/old_reporter.rb
@@ -1,4 +1,3 @@
# encoding: utf-8
require 'minitest'
require 'guard/minitest/notifier'

Expand Down
1 change: 0 additions & 1 deletion lib/guard/minitest/runner.rb
@@ -1,4 +1,3 @@
# encoding: utf-8
require 'rubygems/requirement'

module Guard
Expand Down
1 change: 0 additions & 1 deletion lib/guard/minitest/runners/old_runner.rb
@@ -1,4 +1,3 @@
# encoding: utf-8
require 'minitest/unit'
require 'guard/minitest/notifier'

Expand Down
Expand Up @@ -7,7 +7,7 @@
describe 'clean' do

before do
@files_on_disk = Dir['spec/**/*_spec.rb'].sort#'spec/guard/minitest/inspector_spec.rb', 'spec/guard/minitest_spec.rb', 'spec/guard/minitest_spec.rb'].sort
@files_on_disk = Dir['spec/**/*_spec.rb'].sort
end

it "should add all test files under the given dir" do
Expand All @@ -31,7 +31,7 @@
end

it 'should remove duplication' do
inspector.clean(['spec/guard/minitest_spec.rb', 'spec/guard/minitest_spec.rb']).must_equal ['spec/guard/minitest_spec.rb']
inspector.clean(['spec/lib/guard/minitest_spec.rb', 'spec/lib/guard/minitest_spec.rb']).must_equal ['spec/lib/guard/minitest_spec.rb']
end

it 'should remove duplication (2)' do
Expand Down
File renamed without changes.
File renamed without changes.
Expand Up @@ -5,7 +5,7 @@

describe 'VERSION' do
it 'is the current version' do
Guard::MinitestVersion::VERSION.must_equal '2.1.1'
Guard::MinitestVersion::VERSION.must_equal '2.1.2'
end
end

Expand Down
File renamed without changes.

0 comments on commit 583c38e

Please sign in to comment.