Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
149 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/guard/rspectacular/formatter.rb → lib/guard/rspec_rails/formatter.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/guard/rspectacular/inspector.rb → lib/guard/rspec_rails/inspector.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# coding: utf-8 | ||
|
||
require 'rspec/core/runner' | ||
|
||
module Guard | ||
class RSpecRails | ||
|
||
autoload :Formatter, 'guard/rspec_rails/formatter' | ||
|
||
# The RSpectacular runner handles the execution of the rspec test. | ||
# | ||
module Runner | ||
class << self | ||
|
||
# Run the supplied specs. | ||
# | ||
# @param [Array<String>] paths the spec files or directories | ||
# @param [Hash] options the options for the Guard | ||
# | ||
def run(paths, options = {}) | ||
return false if paths.empty? | ||
|
||
Formatter.info "Run #{ paths.join('') }" | ||
|
||
RSpec::Core::Runner.run(paths) | ||
|
||
rescue Exception => e | ||
Formatter.error "Error while spec run: #{ e.message }" | ||
end | ||
|
||
end | ||
end | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
lib/guard/rspectacular/templates/Guardfile → lib/guard/rspec_rails/templates/Guardfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Guard | ||
module RSpecRailsVersion | ||
# Guard::Spec version that is used for the Gem specification | ||
VERSION = '0.1.0' | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
spec/guard/rspectacular/formatter_spec.rb → spec/guard/rspec_rails/formatter_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
spec/guard/rspectacular/inspector_spec.rb → spec/guard/rspec_rails/inspector_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# coding: utf-8 | ||
|
||
require 'spec_helper' | ||
|
||
describe Guard::RSpecRails::Runner do | ||
|
||
let(:runner) { Guard::RSpecRails::Runner } | ||
|
||
describe '#run' do | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require 'spec_helper' | ||
|
||
describe Guard::RSpecRails do | ||
describe 'VERSION' do | ||
it 'defines the version' do | ||
Guard::RSpecRailsVersion::VERSION.should match /\d+.\d+.\d+/ | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
require 'spec_helper' | ||
|
||
describe Guard::RSpecRails do | ||
|
||
let(:guard) { Guard::RSpecRails.new } | ||
|
||
let(:runner) { Guard::RSpecRails::Runner } | ||
let(:inspector) { Guard::RSpecRails::Inspector } | ||
let(:formatter) { Guard::RSpecRails::Formatter } | ||
|
||
let(:defaults) { Guard::RSpecRails::DEFAULT_OPTIONS } | ||
|
||
describe '.start' do | ||
end | ||
|
||
describe '.reload' do | ||
end | ||
|
||
describe '.run_all' do | ||
end | ||
|
||
describe '.run_on_change' do | ||
end | ||
|
||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.