Skip to content

Instantly share code, notes, and snippets.

@denisdefreyne
Last active December 17, 2015 12:38
Show Gist options
  • Save denisdefreyne/5610822 to your computer and use it in GitHub Desktop.
Save denisdefreyne/5610822 to your computer and use it in GitHub Desktop.
tahontaenrat …opment/nanoc/repos/nanoc ▸ ack meow
test/base/test_code_snippet.rb
7: $complete_insane_parrot = 'meow'
19: @foo = 'meow'
26: assert_equal('meow', @foo)
test/base/test_item_rep.rb
504: File.open('content/meow.dat', 'w') { |io| io.write('asdf') }
506: "content/meow.dat", {}, '/',
532: File.open('content/meow.dat', 'w') { |io| io.write('asdf') }
534: "content/meow.dat", {}, '/',
test/data_sources/test_filesystem_verbose.rb
171: io.write(YAML.dump({ 'cat' => 'meow' }))
183: assert_equal 'meow', layouts[0][:cat]
203: io.write(YAML.dump({ 'cat' => 'meow' }))
215: assert_equal 'meow', layouts[0][:cat]
test/extra/checking/checks/test_external_links.rb
75: assert_equal '/meow?foo=bar', check.send(:path_for_url, URI.parse('http://example.com/meow?foo=bar'))
test/extra/deployers/test_fog.rb
17: File.open('output/meow', 'w') { |io| io.write "I am a cat!" }
27: assert File.file?('mylocalcloud/mybucket/meow')
29: assert_equal "I am a cat!", File.read('mylocalcloud/mybucket/meow')
50: File.open('output/meow', 'w') { |io| io.write "I am a cat!" }
78: File.open('mylocalcloud/mybucket/meow', 'w') { |io| io.write('meh-meow') }
83: File.open('output/meow', 'w') { |io| io.write "I am a cat!" }
94: assert File.file?('mylocalcloud/mybucket/meow')
96: assert_equal "I am a cat!", File.read('mylocalcloud/mybucket/meow')
test/filters/test_relativize_paths.rb
198: @item_rep.path = '/woof/meow/'
222: @item_rep.path = '/woof/meow/'
246: @item_rep.path = '/woof/meow/'
270: @item_rep.path = '/woof/meow/'
294: @item_rep.path = '/woof/meow/'
319: @item_rep.path = '/woof/meow/'
453: @item_rep.path = '/woof/meow/'
477: @item_rep.path = '/woof/meow/'
test/helpers/test_blogging.rb
641: 'content', { :custom_path_in_feed => '/meow/woof/' }, '/foo/')
645: assert_equal('http://example.com/meow/woof/', url_for(item))
test/helpers/test_text.rb
8: assert_equal('...', excerptize('Foo bar baz quux meow woof', :length => 3))
9: assert_equal('Foo ...', excerptize('Foo bar baz quux meow woof', :length => 7))
10: assert_equal('Foo bar baz quux meow woof', excerptize('Foo bar baz quux meow woof', :length => 26))
11: assert_equal('Foo bar baz quux meow woof', excerptize('Foo bar baz quux meow woof', :length => 8623785))
15: assert_equal('Foo [continued]', excerptize('Foo bar baz quux meow woof', :length => 15, :omission => '[continued]'))
tahontaenrat …opment/nanoc/repos/nanoc ▸ ack woof
test/base/test_code_snippet.rb
10: code_snippet = Nanoc::CodeSnippet.new("$complete_insane_parrot = 'woof'", 'parrot.rb')
14: assert_equal('woof', $complete_insane_parrot)
22: code_snippet = Nanoc::CodeSnippet.new("@foo = 'woof'", 'dog.rb')
test/base/test_item_rep.rb
513: File.open('tmp/woof.dat', 'w') { |io| io.write('fdsa') }
514: item_rep.instance_eval { @temporary_filenames[:last] = 'tmp/woof.dat' }
515: item_rep.raw_path = 'output/woof.dat'
541: File.open('tmp/woof.dat', 'w') { |io| io.write('fdsa') }
543: File.open('output/woof.dat', 'w') { |io| io.write('fdsa but different') }
544: item_rep.instance_eval { @temporary_filenames[:last] = 'tmp/woof.dat' }
545: item_rep.raw_path = 'output/woof.dat'
test/data_sources/test_filesystem_verbose.rb
162: io.write(YAML.dump({ 'dog' => 'woof' }))
185: assert_equal 'woof', layouts[1][:dog]
194: io.write(YAML.dump({ 'dog' => 'woof' }))
217: assert_equal 'woof', layouts[1][:dog]
test/filters/test_relativize_paths.rb
198: @item_rep.path = '/woof/meow/'
222: @item_rep.path = '/woof/meow/'
246: @item_rep.path = '/woof/meow/'
270: @item_rep.path = '/woof/meow/'
294: @item_rep.path = '/woof/meow/'
319: @item_rep.path = '/woof/meow/'
453: @item_rep.path = '/woof/meow/'
477: @item_rep.path = '/woof/meow/'
test/helpers/test_blogging.rb
641: 'content', { :custom_path_in_feed => '/meow/woof/' }, '/foo/')
645: assert_equal('http://example.com/meow/woof/', url_for(item))
test/helpers/test_text.rb
8: assert_equal('...', excerptize('Foo bar baz quux meow woof', :length => 3))
9: assert_equal('Foo ...', excerptize('Foo bar baz quux meow woof', :length => 7))
10: assert_equal('Foo bar baz quux meow woof', excerptize('Foo bar baz quux meow woof', :length => 26))
11: assert_equal('Foo bar baz quux meow woof', excerptize('Foo bar baz quux meow woof', :length => 8623785))
15: assert_equal('Foo [continued]', excerptize('Foo bar baz quux meow woof', :length => 15, :omission => '[continued]'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment