diaspora/spec/misc_spec.rb
2010-07-07 10:53:22 -07:00

30 lines
607 B
Ruby

require File.dirname(__FILE__) + '/spec_helper'
describe 'making sure the spec runner works' do
it 'should fail' do
false.should == true
end
it 'should not delete the database mid-spec' do
User.count.should == 0
Factory.create(:user)
User.count.should == 1
end
it 'should make sure the last user no longer exsists' do
User.count.should == 0
end
describe 'testing a before do block' do
before do
Factory.create(:user)
end
it 'should have cleaned before the before do block runs' do
User.count.should == 1
end
end
end