Sha256: 53d4f9ed7e07e312d21ca52111d004dd49373c0bd5cbd4dd65afde010c4faa62
Contents?: true
Size: 758 Bytes
Versions: 13
Compression:
Stored size: 758 Bytes
Contents
require "spec_helper" xscope do let(:three) { 3 } xspec "variables and lets" do one = 2 two = 2 @one_plus_two_plus_three = one + two + three @res = 3 @one_plus_two_plus_three.to_i == @res end xspec "again?" do @arr = %w[a b c d e] @arr.pop == "k" end xspec "not natural" do one = 2 two = 2 @one_plus_two_plus_three = one + two + three @res = 3 @res = @one_plus_two_plus_three.to_i + @res.to_i end end scope do let(:parser) { OpenStruct.new(args: []) } spec("AAAAAAAAAA") { parser.args == %w[first second] } spec("BBBBBBBBBB") { a = 5 parser.args == %w[first second] } spec("CCCCCCCCCC") { parser.args == %w[first second] } spec { parser.args == %w[first second] } end
Version data entries
13 entries across 13 versions & 1 rubygems