gem install rdd
- create a
spec/readme_spec.rb
spec file
require 'rdd/rspec'
describe_readme(File.expand_path('../../../README.md', __FILE__))
- run the spec
rspec -cfn spec/readme_spec.rb
p 1 + 1
# => 2
a = 6
b = 7
p a + b
# => 13
p a * b
# => 42
gem install rdd
spec/readme_spec.rb
spec filerequire 'rdd/rspec'
describe_readme(File.expand_path('../../../README.md', __FILE__))
rspec -cfn spec/readme_spec.rb
p 1 + 1
# => 2
a = 6
b = 7
p a + b
# => 13
p a * b
# => 42