Skip to content

Instantly share code, notes, and snippets.

@daveworth
Created October 27, 2011 14:23
Show Gist options
  • Save daveworth/1319676 to your computer and use it in GitHub Desktop.
Save daveworth/1319676 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe ContactImport do
describe "Schema" do
it { should have_db_column(:import_file_name).of_type(:string) }
it { should have_db_column(:import_content_type).of_type(:string) }
it { should have_db_column(:import_file_size).of_type(:integer) }
it { should have_db_column(:import_updated_at).of_type(:datetime) }
it { should have_db_column(:import_format).of_type(:string) }
it { should have_db_column(:tag_import).of_type(:boolean) }
it { should have_db_column(:tag_with).of_type(:string) }
it { should have_db_column(:remove_duplicates).of_type(:boolean) }
it { should have_db_column(:duplicate_field).of_type(:string) }
it { should have_db_column(:merge_duplicates).of_type(:boolean) }
it { should have_db_column(:merge_field).of_type(:string) }
it { should have_db_column(:type).of_type(:string) }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment