spec/rtanque/heading_spec.rb in rtanque-0.1.2 vs spec/rtanque/heading_spec.rb in rtanque-0.1.3
- old
+ new
@@ -108,11 +108,11 @@
it 'receives negative floats' do
expect(described_class.new(-NINETY).radians).to eql NINETY * 3
end
it 'creates frozen object' do
- expect(described_class.new(0).frozen?).to be_true
+ expect(described_class.new(0).frozen?).to be_truthy
end
end
describe '#clone' do
it 'returns a Heading' do
@@ -133,46 +133,46 @@
end
describe '#==' do
it 'works like Numeric, ignoring type' do
a = described_class.new(1.0)
- expect(a == 1).to be_true
+ expect(a == 1).to be_truthy
end
it 'correctly compares two equal headings' do
a = described_class.new(1.0)
b = described_class.new(1.0)
- expect(a == b).to be_true
+ expect(a == b).to be_truthy
end
it 'correctly compares two different headings' do
a = described_class.new(0)
b = described_class.new(1.0)
- expect(a == b).to be_false
+ expect(a == b).to be_falsey
end
it 'compares to a numeric on LHS' do
a = described_class.new(Math::PI)
- expect(Math::PI == a).to be_true
+ expect(Math::PI == a).to be_truthy
end
end
describe '#eql?' do
it 'compares types like Numeric, comparing type' do
a = described_class.new(1.0)
- expect(a.eql?(1)).to be_false
+ expect(a.eql?(1)).to be_falsey
end
it 'correctly compares two equal headings' do
a = described_class.new(1.0)
b = described_class.new(1.0)
- expect(a.eql?(b)).to be_true
+ expect(a.eql?(b)).to be_truthy
end
it 'correctly compares two different headings' do
a = described_class.new(0)
b = described_class.new(1.0)
- expect(a.eql?(b)).to be_false
+ expect(a.eql?(b)).to be_falsey
end
end
describe '#<=>' do
it 'receives headings' do