Mike Cohn
Plans help to guide investment decisions (this project is worth to begin?), know who needs to be available to work on a project during a given period and know if a project is on track.
bin | |
.classpath | |
.project |
require 'nsicloudooo' | |
require 'base64' | |
oo = NSICloudooo::Client.new 'http://user:password@host:port' | |
filename = '/home/rodrigo/manual.odt' | |
f = File.open(filename) | |
doc = Base64.encode64(f.read) | |
response = oo.granulate(file: doc, filename: 'manual.odt') | |
key = response['key'] | |
oo.done(key) |
require 'rails_helper' | |
feature 'select2' do | |
scenario 'select2', js: true do | |
5.times { create(:disciplina) } | |
visit new_disciplina_path | |
execute_script("$('.disciplina_pre_requisitos .select2-input').val('ABC')") | |
execute_script("$('.disciplina_pre_requisitos .select2-container').select2('open')") | |
wait_for_ajax | |
find('.select2-results li:first-child').click |
module AuditDecorator | |
def changes_with_associations | |
klass = auditable.class | |
audited_changes.map do |attribute, (from, to)| | |
attribute = attribute.to_s | |
if attribute.ends_with?('_id') | |
results = from_to(attribute, from, to) | |
if results.present? | |
from, to = results | |
attribute = attribute[0..-4] |