/Users/casiano/local/src/ruby/LPP/rspec_examples/rpcalculator/ |~lib/ | |~math/ | | `-rpcalc.rb | `-rpcalc.rb |~spec/ | |~math/ | | `-rpcalc_spec.rb | `-spec_helper.rb |-Rakefile `-README.md
[~/local/src/ruby/LPP/rspec_examples/rpcalculator(0)]$ cat Rakefile desc 'run rspec tests' task :spec do sh "rspec -Ilib -Ispec spec/math/rpcalc_spec.rb" end ...
[~/local/src/ruby/LPP/rspec_examples/rpcalculator(master)]$ cat spec/math/rpcalc_spec.rb #require File.join(File.dirname(__FILE__), "/../spec_helper") require "spec_helper" module Math describe RPCalc do end end
[~/local/src/ruby/LPP/rspec_examples/rpcalculator(master)]$ cat spec/spec_helper.rb #$: << File.join(File.dirname(__FILE__), "../../lib") require "rspec" require "rpcalc"
[~/local/src/ruby/LPP/rspec_examples/rpcalculator(master)]$ cat lib/math/rpcalc.rb module Math class RPCalc end # class RPCalc end # Math
[~/local/src/ruby/LPP/rspec_examples/rpcalculator(master)]$ cat lib/rpcalc.rb require 'math/rpcalc'
[~/local/src/ruby/LPP/rspec_examples/rpcalculator(1)]$ rake spec rspec -Ilib -Ispec spec/math/rpcalc_spec.rb No examples found. Finished in 0.00005 seconds 0 examples, 0 failures