Sha256: a332e012fee4d4743a2d7f61673a56e62287c354521d6c45de7cc371da6fc95e

Contents?: true

Size: 211 Bytes

Versions: 29

Compression:

Stored size: 211 Bytes

Contents

require 'workplace.rb'

RSpec.describe "A loop" do
  it "given 2 and 2, return 6" do
    expect(for_system(2, 2)).to eq(6)
  end
  it "given 3 and 3, return 8" do
    expect(for_system(3, 2)).to eq(9)
  end
end

Version data entries

29 entries across 27 versions & 1 rubygems

Version Path
ruby_learner-1.2.9 contents/questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.2.8 contents/questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.2.7 contents/questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.2.6 contents/questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.2.5 contents/questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.2.4 contents/questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.2.3 contents/questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.2.2 contents/questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.2.1 contents/questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.2.0 contents/questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.1.15 questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.1.14 questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.1.13 questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.1.11 questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.1.10 questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.1.9 questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.1.8 questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.1.7 questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.1.6 questions/random_check/section_1/spec/workplace_spec.rb
ruby_learner-1.1.5 questions/random_check/section_1/spec/workplace_spec.rb