Commit cfcfea9f

mo <mokha@cisco.com>
2017-04-28 03:07:40
add rspec bin stub.
1 parent b007fbb
app/views/layouts/application.html.erb
@@ -19,7 +19,6 @@
 <%= favicon_link_tag 'apple-touch-icon-114x114.png', rel: 'apple-touch-icon', type: 'image/png', sizes: "114x114" %>
 <%= yield :head %>
 <%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
-<%# javascript_include_tag "//www.google.com/jsapi", "chartkick" %>
 <!--[if lt IE 9]>
   <script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
 <![endif]-->
bin/rspec
@@ -0,0 +1,14 @@
+#!/usr/bin/env ruby
+begin
+  load File.expand_path('../spring', __FILE__)
+rescue LoadError => e
+  raise unless e.message.include?('spring')
+end
+require "pathname"
+ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
+  Pathname.new(__FILE__).realpath)
+
+require "rubygems"
+require "bundler/setup"
+
+load Gem.bin_path("rspec-core", "rspec")
bin/spring
@@ -0,0 +1,17 @@
+#!/usr/bin/env ruby
+
+# This file loads spring without using Bundler, in order to be fast.
+# It gets overwritten when you run the `spring binstub` command.
+
+unless defined?(Spring)
+  require 'rubygems'
+  require 'bundler'
+
+  lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
+  spring = lockfile.specs.detect { |spec| spec.name == "spring" }
+  if spring
+    Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
+    gem 'spring', spring.version
+    require 'spring/binstub'
+  end
+end
Gemfile
@@ -56,6 +56,7 @@ group :development do
   gem 'lol_dba'
   gem 'pry-rails'
   gem 'web-console', '~> 2.0'
+  gem 'spring-commands-rspec'
 end
 
 group :development, :test do
Gemfile.lock
@@ -484,6 +484,8 @@ GEM
     spank (1.0.1441140881)
     spring (2.0.1)
       activesupport (>= 4.2)
+    spring-commands-rspec (1.0.4)
+      spring (>= 0.9.1)
     sprockets (3.7.1)
       concurrent-ruby (~> 1.0)
       rack (> 1, < 3)
@@ -609,6 +611,7 @@ DEPENDENCIES
   simplecov
   spank
   spring
+  spring-commands-rspec
   sqlite3
   teaspoon-jasmine
   turbolinks