Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9c5122ab37
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (23 sloc) 0.64 kb
require 'spec_helper'
describe 'spec_helper' do
it 'successfully connects to an in-memory database' do
User.connection_config[:adapter].should eq('sqlite3')
User.connection_config[:database].should eq(':memory:')
User.create!
User.count.should eq(1)
end
it 'rolls back between examples' do
User.count.should eq(0)
end
it 'defines Rails.root' do
Rails.root.should eq(File.expand_path('../..', __FILE__))
end
end
describe User do
it 'is an active record' do
User.new.should be_an(ActiveRecord::Base)
end
it 'has an avatar' do
User.new.avatar.should be_a(Paperclip::Attachment)
end
end
Jump to Line
Something went wrong with that request. Please try again.