Skip to content

Instantly share code, notes, and snippets.

View hansondr's full-sized avatar

Daniel Hanson hansondr

View GitHub Profile
component_name = Rails.root.to_s.split("/")[-3]
component_root = Rails.root.to_s.gsub("spec/dummy", "")
gemspec = <<-EOS
s.add_development_dependency \"rspec-rails\"
s.test_files = Dir["spec/**/*"]
EOS
inject_into_file "#{component_root}/#{component_name}.gemspec",