Class: SafePusher::Client::Rspec

Inherits:
Object
  • Object
show all
Defined in:
lib/safe_pusher/client/rspec.rb

Instance Method Summary collapse

Constructor Details

#initializeRspec

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

#testObject



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