のストック代わりにメモ。
Rakefile
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new("spec")
task :default => :spec
spec/spec_helper.rb
require 'rspec'
Dir["./support/**/*.rb"].each do |f|
require f
end
RSpec.configure do |config|
end
spec/app_spec.rb
require 'spec_helper'
describe 'app_spec' do
it {
expect(1).to eq(1)
}
end
Gemfile
source 'https://rubygems.org/'
gem 'rake'
gem 'rspec'
$ rake spec
$ bundle exec rake spec