lib/r_spec.rb in r_spec-1.0.0.beta4 vs lib/r_spec.rb in r_spec-1.0.0.beta5

- old
+ new

@@ -7,10 +7,13 @@ # # RSpec.describe do # it { expect(false).not_to be true } # end # +# # Output to the console +# # Success: expected false not to be true. +# # @example The basic behavior of arrays # require "r_spec" # # RSpec.describe Array do # describe "#size" do @@ -28,10 +31,15 @@ # expect([1].empty?).to be_false # end # end # end # +# # Output to the console +# # Success: expected to eq 3. +# # Success: expected true to be true. +# # Success: expected false to be false. +# # @example An inherited definition of let # require "r_spec" # # RSpec.describe Integer do # let(:answer) { 42 } @@ -46,9 +54,13 @@ # it "returns the next value" do # expect(answer).to be(43) # end # end # end +# +# # Output to the console +# # Success: expected to be 42. +# # Success: expected to be 43. # # @api public module RSpec # Specs are built with this method. #