Permalink
Browse files

Fix bundler + gemspec configuration

Using bundler + gemspec means `git ls-files` can't be used when testing new files.

Additionally, the spec files don't *require* bundler to run, so instead we can just `bundle exec rspec` to lock down the gemset then run as normal. Bundler makes sure our gem is already in the load path.
  • Loading branch information...
1 parent 22743cd commit affc5fe61ed80440cdaa01d0bb1deaa71d89f736 @sj26 sj26 committed Jul 16, 2013
Showing with 4 additions and 6 deletions.
  1. +2 −3 nestive.gemspec
  2. +2 −3 spec/spec_helper.rb
View
@@ -13,9 +13,8 @@ Gem::Specification.new do |s|
s.description = 'A Rails plugin/gem for awesome nested templates and layouts'
s.licenses = ['MIT']
-
- s.files = `git ls-files`.split("\n")
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.files = Dir["README.md", "MIT-LICENSE", "lib/**/*"]
+ s.test_files = Dir["spec/**/*"]
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ['lib']
View
@@ -1,9 +1,8 @@
-require 'bundler/setup'
require 'rails'
require 'combustion'
-require File.expand_path('../../lib/nestive', __FILE__)
+require 'nestive'
Combustion.initialize! :action_controller
-require 'rspec/rails'
+require 'rspec/rails'

0 comments on commit affc5fe

Please sign in to comment.