Class: RspecContract
- Inherits:
-
StartingBlocks::Contract
- Object
- StartingBlocks::Contract
- RspecContract
- Defined in:
- lib/rspec_contract.rb
Instance Method Summary collapse
Instance Method Details
#execute_these_files(files) ⇒ Object
11 12 13 14 15 |
# File 'lib/rspec_contract.rb', line 11 def execute_these_files files requires = files.map { |x| "require '#{x}'" }.join("\n") command = "rspec #{files.join(" ")}" StartingBlocks::Bash.run command end |
#extensions ⇒ Object
7 8 9 |
# File 'lib/rspec_contract.rb', line 7 def extensions ['.rb'] end |
#file_clues ⇒ Object
3 4 5 |
# File 'lib/rspec_contract.rb', line 3 def file_clues ["test", "spec"] end |