Sha256: 7c2308dcc7ad9cc3d4c68d5cc028366d959b652e9801d9663d4834223a970631
Contents?: true
Size: 1015 Bytes
Versions: 5
Compression:
Stored size: 1015 Bytes
Contents
require "minitest/autorun" require "storazzo" class StorazzoTest < Minitest::Test def test_storazzo_hi_with_argument assert_match "Hello from Storazzo", Storazzo::Main.hi("ruby this should fail") assert_match "ruby this should fail", Storazzo::Main.hi("ruby this should fail") end def test_storazzo_hi_without_argument assert_match "Hello from Storazzo", Storazzo::Main.hi() end def test_storazzo_version_should_have_3_numbers_and_2_dots # puts Storazzo::version assert_equal Storazzo::version.split('.').size , 3, "should be 3 parts, like A.B.C" #major, minor, minuscule = Storazzo::VERSION.split('.') # assert_match Storazzo::VERSION, "....." end # def test_english_hello # assert_equal "hello world", # Hola.hi("english") # end # def test_any_hello # assert_equal "hello world", # Hola.hi("ruby") # end # def test_spanish_hello # assert_equal "hola mundo", # Hola.hi("spanish") # end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
storazzo-0.2.2 | test/test_storazzo.rb |
storazzo-0.2.1 | test/test_storazzo.rb |
storazzo-0.2.0 | test/test_storazzo.rb |
storazzo-0.1.2 | test/test_storazzo.rb |
storazzo-0.1.1 | test/test_storazzo.rb |