Description and usage:
require 'test_class'
TestClass.new
Install the rspec gem
gem install rspec
Run the spec
rspec test_class_spec.rb
Gem::Specification.new do |s| | |
s.name = 'test_class' | |
s.summary = '' | |
s.description = '' | |
s.version = '0.0.1' | |
s.platform = Gem::Platform::RUBY | |
s.files = ['test_class.rb'] | |
s.require_path = '.' | |
s.author = '' | |
s.email = '' | |
s.homepage = '' | |
s.test_file = 'test_class_spec.rb' | |
s.add_development_dependency('rspec', ["~> 2.8"]) | |
end |
class TestClass | |
end |
require File.expand_path('test_class') | |
describe TestClass do | |
it 'should have tests' do | |
pending | |
end | |
end |