This file contains hidden or 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
| require 'rake' | |
| require 'rspec/core/rake_task' | |
| # RSpec::Core::RakeTask.new(:spec) | |
| # task :default => :spec | |
| task :default do | |
| filelist = FileList['spec/*_spec.rb'].join(' ') | |
| sh "bundle exec rspec #{filelist}" | |
| end |
This file contains hidden or 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
| <?php | |
| require_once('simpletest/autorun.php'); | |
| require_once('Calc.php'); | |
| class TestOfCalc extends UnitTestCase { | |
| function testCalcAdd() { | |
| $calc = new Calc(); | |
| // 1 + 1 = 2 | |
| $this->assertEqual($calc->add(1,1), 2); |
This file contains hidden or 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
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/vundle.git/ | |
| call vundle#rc() | |
| Bundle 'quickrun.vim' | |
| Bundle 'neocomplcache' |
NewerOlder