spec/unit/sucker/stub_spec.rb in sucker-0.6.1 vs spec/unit/sucker/stub_spec.rb in sucker-0.6.2
- old
+ new
@@ -43,9 +43,15 @@
context "defines:" do
context "#fixture" do
it "generates a path for the fixture" do
@worker.fixture.should match /.*\/[0-9a-f]{32}\.xml$/
end
+
+ it "generates unique fixtures across venues" do
+ us_fixture = @worker.fixture
+ @worker.locale = "fr"
+ @worker.fixture.should_not eql us_fixture
+ end
end
end
end
end
end