Sha256: 592dc7e1a827c314c52c93c3f1a8622967fca47c08808b6ad39e95e276727387
Contents?: true
Size: 646 Bytes
Versions: 5
Compression:
Stored size: 646 Bytes
Contents
require 'spec_helper' describe Yardstick::Rule do describe '#eql?' do describe 'when rules are equal' do before do @rule = Yardstick::Rule.new('test rule') { true } @other = Yardstick::Rule.new('test rule') { true } end it 'should return true' do @rule.eql?(@other).should be_true end end describe 'when rules are not equal' do before do @rule = Yardstick::Rule.new('test rule') { true } @other = Yardstick::Rule.new('other rule') { true } end it 'should return false' do @rule.eql?(@other).should be_false end end end end
Version data entries
5 entries across 5 versions & 1 rubygems