This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Compare | |
def self.similar_between?(keeper, finder) | |
finder_scan = finder.scan(/./) | |
keeper_scan = keeper.scan(/./) | |
same = [] | |
keeper_scan.each_with_index{ |char, key| same << char if finder_scan[key] == char } | |
same.join | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Run all features" | |
task :features => 'db:test:prepare' | |
task :features => "features:all" | |
require 'cucumber/rake/task' #I have to add this -mischa | |
require 'spec/rake/spectask' | |
namespace :rcov do | |
Cucumber::Rake::Task.new(:cucumber) do |t| | |
t.rcov = true | |
t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/,features\/ --aggregate coverage.data} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.youtube.com/watch?v=6Bia81dI-JE | |
Building on SOLID foundations - Steve Freeman & Nat Pryce | |
10:00 - Ravioli Code | |
12:15 - Spaghetti and Meatballs | |
* Brittle event flow tying objects together | |
13:30 - Tangle of Wires | |
* You can wiring your objects together, using DI, but everything | |
is just tangled together with all of this wiring between objects |
NewerOlder