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
describe 'whatever' do | |
def compare_strings(query, result) | |
count = (query.length / 100) + 1 | |
count.times do |i| | |
min = (i - 1) * 100 | |
max = i * 100 | |
expect(query[min..max]).to eq result[min..max] | |
end | |
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
class PrintCount | |
def diff | |
before = count_all_models_with_table | |
after = if block_given? | |
yield | |
count_all_models_with_table | |
else | |
Hash.new(0) | |
end | |
print_diff(before, after) |
- Abstract Factory ES Wikipedia SourceMaking
- Builder EN Wikipedia SourceMaking
- Factory Method ES Wikipedia EN Wikipedia SourceMaking
- Prototype ES Wikipedia EN Wikipedia SourceMaking
- Singleton EN Wikipedia SourceMaking