spec/unit/sucker/request_spec.rb in sucker-1.1.1 vs spec/unit/sucker/request_spec.rb in sucker-1.1.2

- old
+ new

@@ -54,9 +54,22 @@ worker.associate_tag.should eql nil end end + describe "#associate_tag=" do + + it "sets the associate tag for the current locale" do + worker.associate_tag = "foo-bar" + associate_tags = worker.instance_variable_get(:@associate_tags) + + associate_tags.keys.size.should eql 1 + associate_tags[:us].should eql 'foo-bar' + worker.associate_tag.should eql 'foo-bar' + end + + end + describe "#associate_tags=" do it "sets associate tags for the locales" do tags = { :us => 'foo',