Skip to content

Commit

Permalink
Added Rspec.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfox1985 committed Jul 15, 2015
1 parent 5b3352e commit dd21147
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,30 @@
require 'rubygems'
require 'bundler'
require 'bundler/gem_tasks'
require 'rdoc/task'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts 'Run `bundle install` to install missing gems'
exit e.status_code
end
require 'rake'
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

desc 'Run RSpec with code coverage'
task :coverage do
ENV['COVERAGE'] = 'true'
Rake::Task['spec'].execute
end

require 'yard'
require 'yard/rake/yardoc_task'

task default: :rdoc
task default: [:spec, :rdoc]

require 'yard'
desc 'Generate documentation for the wice_grid plugin.'
YARD::Rake::YardocTask.new(:rdoc) do |t|
OTHER_PATHS = %w()
Expand Down

0 comments on commit dd21147

Please sign in to comment.