Class: SafePusher::Client::Rspec
- Inherits:
-
Object
- Object
- SafePusher::Client::Rspec
- Defined in:
- lib/safe_pusher/client/rspec.rb
Instance Method Summary collapse
-
#initialize ⇒ Rspec
constructor
A new instance of Rspec.
- #test ⇒ Object
Constructor Details
#initialize ⇒ Rspec
Returns a new instance of Rspec.
4 5 6 |
# File 'lib/safe_pusher/client/rspec.rb', line 4 def initialize @specs_to_execute = [] end |
Instance Method Details
#test ⇒ Object
8 9 10 11 12 |
# File 'lib/safe_pusher/client/rspec.rb', line 8 def test return 1 if list_files_to_execute == 1 run_specs end |