mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 09:46:05 +00:00
Add placeholder test files
This commit is contained in:
parent
4a6fef3c8c
commit
1386d56316
8
Rakefile
Normal file
8
Rakefile
Normal file
@ -0,0 +1,8 @@
|
||||
require 'rake/testtask'
|
||||
|
||||
Rake::TestTask.new do |t|
|
||||
t.libs << 'test'
|
||||
end
|
||||
|
||||
desc "Run tests"
|
||||
task :default => :test
|
||||
@ -1,5 +1,5 @@
|
||||
class WaybackMachineDownloader
|
||||
def self.hi name
|
||||
puts "Hello world! #{name}"
|
||||
"Hello world! #{name}"
|
||||
end
|
||||
end
|
||||
|
||||
8
test/test_wayback_machinve_downloader.rb
Normal file
8
test/test_wayback_machinve_downloader.rb
Normal file
@ -0,0 +1,8 @@
|
||||
require 'minitest/autorun'
|
||||
require 'wayback_machine_downloader'
|
||||
|
||||
class WaybackMachineDownloaderTest < Minitest::Test
|
||||
def test_english_hello
|
||||
assert_equal "Hello world! John", WaybackMachineDownloader.hi("John")
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user