Description Type Source Link Date
Spec tests: Class test
ruby 2.3.1
minitest 5.9.0
describe Meme do before do @meme = Meme.new end describe "when asked about cheeseburgers" do it "... http://ruby.gbaptista.com/t/w3MIdw 11/19/17, 19:39
Spec tests: Methods test
ruby 2.3.1
minitest 5.9.0
describe 'Some Methods' do describe '#sum' do it 'sum x + y' do sum(5, 3).must_equal 8 end end de... http://ruby.gbaptista.com/t/FL8FQg 11/19/17, 19:38
Spec tests: Empty template test
ruby 2.3.1
minitest 5.9.0
describe 'MyTest' do describe 'something' do it { true.must_equal true } end end http://ruby.gbaptista.com/t/9URkrQ 11/19/17, 19:37
Unit tests: Class test
ruby 2.3.1
minitest 5.9.0
class TestMeme < Minitest::Test def setup @meme = Meme.new end def test_that_kitty_can_eat assert... http://ruby.gbaptista.com/t/68p2CQ 11/19/17, 19:36
Unit tests: Methods test
ruby 2.3.1
minitest 5.9.0
class TestSomeMethods < Minitest::Test def test_add assert_equal 4, sum(2, 2) assert_equal 8, sum... http://ruby.gbaptista.com/t/6jecVg 11/19/17, 19:35
Unit tests: Empty template test
ruby 2.3.1
minitest 5.9.0
class MyTest < Minitest::Test def test_something assert true end end http://ruby.gbaptista.com/t/h4pl7w 11/19/17, 19:34
Behaviour Description test
ruby 2.3.1
minitest 5.9.0
cucumber 2.4.0
Given /^a cucumber that is (\d+) cm long$/ do |length| @cucumber = MyCucumber.new(color: 'green',... http://ruby.gbaptista.com/t/w0h8lQ 11/19/17, 19:32
Spec tests: Class test
ruby 2.3.1
rspec 3.5.0
RSpec.describe Greeter do context '#say_hello' do it 'say hello to all customers' do expect( desc... http://ruby.gbaptista.com/t/vnK8ZA 11/19/17, 19:30
Spec tests: Methods test
ruby 2.3.1
rspec 3.5.0
RSpec.describe 'Some Methods' do context '#sum' do it 'sum x + y' do expect(sum(5, 3)).to eq(8) e... http://ruby.gbaptista.com/t/WX-LHQ 11/19/17, 19:29
Spec tests: Empty template test
ruby 2.3.1
rspec 3.5.0
RSpec.describe 'MyTest' do context 'test something' do it { expect(true).to be_truthy } end end http://ruby.gbaptista.com/t/SbY5Ag 11/19/17, 19:28
Behaviour Description test
ruby 2.3.1
rspec 3.5.0
cucumber 2.4.0
Given /^a cucumber that is (\d+) cm long$/ do |length| @cucumber = MyCucumber.new(color: 'green',... http://ruby.gbaptista.com/t/RMMXfA 11/19/17, 19:26
Unit tests: Class test
ruby 2.3.1
test-unit 3.2.0
class TC_GreeterTest < Test::Unit::TestCase def test_say_hello assert_equal( Greeter.say_hello(%w... http://ruby.gbaptista.com/t/v8fzNg 11/19/17, 19:24
Unit tests: Methods test
ruby 2.3.1
test-unit 3.2.0
class TestMethods < Test::Unit::TestCase def test_add assert_equal(4, sum(2, 2)) assert_equal(8, ... http://ruby.gbaptista.com/t/xMee8g 11/19/17, 19:11
Unit tests: Empty template test
ruby 2.3.1
test-unit 3.2.0
class MyTest < Test::Unit::TestCase def test_something assert_true(true) end end http://ruby.gbaptista.com/t/1t1Z2g 11/19/17, 19:10
Behaviour Description test
ruby 2.3.1
test-unit 3.2.0
cucumber 2.4.0
Given /^a cucumber that is (\d+) cm long$/ do |length| @cucumber = MyCucumber.new(color: 'green',... http://ruby.gbaptista.com/t/7a0Gpg 11/19/17, 19:08
Dummy url finder regex
ruby 2.3.1
/https?:\/\/[\w|\.|-]+/ http://ruby.gbaptista.com/r/8Efj4w 11/19/17, 02:06
Dummy email finder regex
ruby 2.3.1
/(?<name>\w+)\@(?<domain>\w+\.\w+)/ http://ruby.gbaptista.com/r/pfnmVA 11/19/17, 02:05
Current Ruby infos playground
ruby 2.3.1
puts "Current Ruby infos:\n\n" puts "Version: #{RUBY_VERSION}" puts "Patch Level: #{RUBY_PATCHLEV... http://ruby.gbaptista.com/p/DmsM-g 11/19/17, 02:04
The cities Array playground
ruby 2.3.1
# Ruby knows what you # mean, even if you # want to do math on # an entire Array cities = %w[ Lon... http://ruby.gbaptista.com/p/hCUAFA 11/19/17, 02:01
The Greeter class playground
ruby 2.3.1
# The Greeter class class Greeter def initialize(name) @name = name.capitalize end def salute put... http://ruby.gbaptista.com/p/aHi04A 11/19/17, 02:00