spec/lib/gendered/guesser_spec.rb in gendered-0.0.4 vs spec/lib/gendered/guesser_spec.rb in gendered-0.0.5

- old
+ new

@@ -11,9 +11,14 @@ it "is initialized with names" do expect(subject.names).to eq names end + it "is initialized with country id" do + guesser = Guesser.new(names, 'us') + expect(guesser.country_id).to eq 'us' + end + it "creates the correct url" do expect(subject.url).to eq "http://api.genderize.io/?name[0]=Sean&name[1]=Theresa" end it "cannot be initialized with an empty array" do