spec/lib/protobuf/field/float_field_spec.rb in protobuf-3.3.6 vs spec/lib/protobuf/field/float_field_spec.rb in protobuf-3.4.0
- old
+ new
@@ -1,8 +1,8 @@
require 'spec_helper'
-describe Protobuf::Field::FloatField do
+RSpec.describe Protobuf::Field::FloatField do
class SomeFloatMessage < ::Protobuf::Message
optional :float, :some_float, 1
end
@@ -42,10 +42,10 @@
expect { subject }.to raise_error(ArgumentError)
end
end
context 'when set with something that is not a float' do
- let(:value) { [ 1, 2, 3 ] }
+ let(:value) { [1, 2, 3] }
it 'throws an error' do
expect { subject }.to raise_error(TypeError)
end
end