rails plugin new vendor/plugins/blog --full --skip-test-unit --dummy-path=spec/dummy
- instead of rails plugin new vendor/plugins/events --full
Follow instructions at https://gist.github.com/ajgon/2e461df44dd4f7211977 to install rspec-rails
rails plugin new vendor/plugins/blog --full --skip-test-unit --dummy-path=spec/dummy
Follow instructions at https://gist.github.com/ajgon/2e461df44dd4f7211977 to install rspec-rails
| DS.Model.reopen | |
| clone: (overrides) -> | |
| model = this | |
| attrs = model.toJSON() | |
| klass = model.constructor | |
| root = Em.String.decamelize(klass.toString().split(".")[1]) | |
| @eachRelationship (key, relationship) -> | |
| if relationship.kind is "belongsTo" | |
| attrs[key] = model.get(key) |
| namespace :ci_smoke do | |
| desc "Checks project to ensure there are no calls to pry or debugger" | |
| task :check_pry_debugger do | |
| excluded_dirs = %w{ .git tasks tmp vendor } | |
| excluded_files = %w{ Gemfile *.lock } | |
| strings = %w{ binding.pry debugger } | |
| strings.each do |s| | |
| puts("Checking for calls to #{s}") |
| /* DroidForm.java */ | |
| import java.util.HashMap; | |
| import java.util.Iterator; | |
| import java.util.Map; | |
| import java.util.Map.Entry; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.util.Log; |