Sha256: 201abe37a39ff7800cff71d9c752f2c7e9be28c8593e1d9072cd93243f3b13cd
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
require 'spec_helper' describe Numeric do describe "#multiple_of?" do it "to be true" do expect(9.multiple_of?(3)).to eq(true) end it "to be false" do expect(10.multiple_of?(3)).to eq(false) end end describe "#negative?" do it "to be true" do expect(-1.negative?).to eq(true) end it "to be false" do expect(1.negative?).to eq(false) end end describe "#positive?" do it "to be true" do expect(1.positive?).to eq(true) end it "to be false" do expect(-1.positive?).to eq(false) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flash_extensions-1.0.0 | spec/lib/numeric_extension_spec.rb |