spec/kosher/seller_spec.rb in kosher-0.2.24 vs spec/kosher/seller_spec.rb in kosher-0.3.0

- old
+ new

@@ -4,19 +4,13 @@ describe Seller do before do @seller = Seller.new end - describe "#blacklist" do - it "defaults to an empty array" do - @seller.blacklist.should eql [] - end - end - describe "#blacklisted?" do before do - Seller.blacklist = ['foo'] + Kosher.seller_blacklist = ['foo'] end it "returns true if the seller is blacklisted" do @seller.id = 'foo' @seller.should be_blacklisted @@ -52,10 +46,10 @@ @seller.should_not be_kosher end it "returns false if seller is blacklisted" do @seller.id = ['foo'] - Seller.blacklist = [@seller.id] + Kosher.seller_blacklist = [@seller.id] @seller.should_not be_kosher end end end end