spec/struct_spec.rb in fear-1.1.0 vs spec/struct_spec.rb in fear-1.2.0
- old
+ new
@@ -13,11 +13,11 @@
context "string arguments" do
subject { -> { struct_class.new("a" => 42, "b" => 43) } }
let(:struct_class) { described_class.with_attributes(:a, :b) }
- it { is_expected.to raise_error(ArgumentError, "wrong number of arguments (given 1, expected 0)") }
+ it { is_expected.to raise_error(ArgumentError) }
end
context "extra argument" do
subject { -> { struct_class.new(a: 42, b: 41, c: 43, d: 44) } }
@@ -69,10 +69,10 @@
describe "#==" do
context "with members" do
let(:struct_class) { described_class.with_attributes(:a, :b) }
context "same class and members" do
- subject { struct_class.new(a: 42, b: 43) == struct_class.new(a: 42, b: 43) } # rubocop: disable Lint/UselessComparison:
+ subject { struct_class.new(a: 42, b: 43) == struct_class.new(a: 42, b: 43) } # rubocop: disable Lint/BinaryOperatorWithIdenticalOperands
it { is_expected.to eq(true) }
end
context "same class and different members" do