spec/lib/gendered/guesser_spec.rb in gendered-0.0.3 vs spec/lib/gendered/guesser_spec.rb in gendered-0.0.4
- old
+ new
@@ -37,7 +37,17 @@
it "does not error" do
expect{subject.guess!}.to_not raise_error
end
end
+ context "with multiple names that are the same" do
+ let :names do
+ ["Sean","Sean"]
+ end
+ it "guesses them both" do
+ guesses = subject.guess!
+ expect(guesses.collect(&:gender).uniq.size).to eq 1
+ end
+ end
+
end
end