spec/mongo/fixture_spec.rb in mongo-fixture-0.0.5 vs spec/mongo/fixture_spec.rb in mongo-fixture-0.1.0

- old
+ new

@@ -5,9 +5,20 @@ it "should return 'test/fixtures'" do Mongo::Fixture.path.should == "test/fixtures" end end + describe ".path=" do + it 'should set the path with the passed string' do + Mongo::Fixture.path = "fixtures" + Mongo::Fixture.path.should == "fixtures" + end + + after do + Mongo::Fixture.path = 'test/fixtures' + end + end + describe ".new" do context "a symbol is sent representing a fixture" do it "should call load" do Mongo::Fixture.any_instance.should_receive(:load).with :test Mongo::Fixture.new :test