spec/auth/group_spec.rb in ddr-models-1.13.0 vs spec/auth/group_spec.rb in ddr-models-1.13.1

- old
+ new

@@ -14,7 +14,14 @@ expect { described_class.build("bob@example.com") }.to raise_error end end end + describe "backward-compatible behavior" do + it "should delegate missing methods to the group name string" do + name = subject.to_s + expect(subject.sub("Group", "Apple")).to eq(name.sub("Group", "Apple")) + end + end + end end