Skip to content

Commit

Permalink
Add RSpec testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestunnell committed Nov 16, 2014
1 parent 91a41e3 commit 8166419
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/.yardoc
/Gemfile.lock
/_yardoc/
/bin/
/coverage/
/doc/
/pkg/
Expand Down
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--format progress
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# encoding: utf-8

require "bundler/gem_tasks"
require 'rake'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new

task :test => :spec
task :default => :spec
1 change: 1 addition & 0 deletions musicality.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ Gem::Specification.new do |spec|

spec.add_development_dependency "bundler", "~> 1.7"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 2.9"
end
7 changes: 7 additions & 0 deletions spec/musicality_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'spec_helper'

describe Musicality do
it "should have a VERSION constant" do
subject.const_get('VERSION').should_not be_empty
end
end
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require 'rspec'
require 'musicality'

include Musicality

0 comments on commit 8166419

Please sign in to comment.