fix the CI build + the middlewares are now code covered

did committed Feb 10, 2015
commit f101783833297dce8ee2ec4297f1cb706eb2a518
Showing 6 changed files with 15 additions and 11 deletions
Gemfile +1 -1
@@ @@ -3,7 +3,7 @@ source 'https://rubygems.org'
gemspec
group :development do
- gem 'locomotivecms_common', '~> 0.0.2', path: '../common'
+ # gem 'locomotivecms_common', '~> 0.0.2', path: '../common'
# gem 'locomotivecms_models', '~> 0.0.1', path: '../models'
# gem 'locomotivecms_models', '0.0.1.pre.alpha'
# gem 'locomotivecms-liquid', path: '/Users/didier/Documents/LocomotiveCMS/gems/liquid'
Gemfile.lock +2 -7
@@ @@ -22,12 +22,6 @@ PATH
sprockets (~> 2.12.3)
sprockets-sass (~> 1.3.1)
- PATH
- remote: ../common
- specs:
- locomotivecms_common (0.0.2)
- colorize
-
GEM
remote: https://rubygems.org/
specs:
@@ @@ -119,6 +113,8 @@ GEM
locomotivecms-liquid (4.0.0.alpha2)
locomotivecms-solid (4.0.0.alpha2)
locomotivecms-liquid (~> 4.0.0.alpha2)
+ locomotivecms_common (0.0.2)
+ colorize
loofah (2.0.1)
nokogiri (>= 1.5.9)
method_source (0.8.2)
@@ @@ -211,7 +207,6 @@ DEPENDENCIES
coveralls
i18n-spec (~> 0.6.0)
json_spec (~> 1.1.4)
- locomotivecms_common (~> 0.0.2)!
locomotivecms_steam!
pry-byebug
rake (~> 10.4.2)
Rakefile +4 -0
@@ @@ -16,6 +16,10 @@ require_relative 'lib/locomotive/steam'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('spec')
+ RSpec::Core::RakeTask.new('spec:integration') do |spec|
+ spec.pattern = 'spec/unit/**/*_spec.rb'
+ end
+
RSpec::Core::RakeTask.new('spec:unit') do |spec|
spec.pattern = 'spec/unit/**/*_spec.rb'
end
locomotive/steam/middlewares.rb b/lib/locomotive/steam/middlewares.rb +5 -0
@@ @@ -23,3 +23,8 @@ require_relative 'middlewares/page'
require_relative 'middlewares/renderer'
require_relative 'middlewares/stack'
+
+ module Locomotive::Steam
+ module Middlewares
+ end
+ end
spec/integration/integration_helper.rb +2 -2
@@ @@ -1,4 +1,4 @@
- require_relative '../../lib/locomotive/steam/server'
-
require File.dirname(__FILE__) + '/../spec_helper'
+
+ require_relative '../../lib/locomotive/steam/server'
require 'rack/test'
spec/spec_helper.rb +1 -1
@@ @@ -11,12 +11,12 @@ SimpleCov.start do
add_filter 'spec/'
+ add_group "Middlewares", "lib/locomotive/steam/middlewares"
add_group "Liquid Filters", "lib/locomotive/steam/liquid/filters"
add_group "Liquid Tags", "lib/locomotive/steam/liquid/tags"
add_group "Liquid Drops", "lib/locomotive/steam/liquid/drops"
add_group "Repositories", "lib/locomotive/steam/repositories"
add_group "Services", "lib/locomotive/steam/services"
- add_group "Middlewares", "lib/locomotive/steam/middlewares"
end
require 'rubygems'