aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/models/referential_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/models/referential_spec.rb b/spec/models/referential_spec.rb
index 2d4649b87..025ad80f9 100644
--- a/spec/models/referential_spec.rb
+++ b/spec/models/referential_spec.rb
@@ -43,6 +43,16 @@ describe Referential, :type => :model do
end
end
+ context "schema creation" do
+
+ it "should create a schema named as the slug" do
+ referential = FactoryGirl.create :referential
+ expect(referential.migration_count).to be ActiveRecord::Migrator.get_all_versions.count
+ expect(referential.migration_count).to be > 300
+ end
+
+ end
+
context "Cloning referential" do
let(:clone) do
Referential.new_from(ref, [])