diff options
| author | Robert | 2017-05-02 12:15:09 +0200 |
|---|---|---|
| committer | jpl | 2017-05-04 10:07:17 +0200 |
| commit | 1627cc70ca336f5630120946e00ee6dbf1999617 (patch) | |
| tree | 754e0fee2f34a70de8823938590f28b7c0e48611 | |
| parent | 2c320f8c407322a7307a03faf97cb7b3ce712bbd (diff) | |
| download | chouette-core-1627cc70ca336f5630120946e00ee6dbf1999617.tar.bz2 | |
working on #3053 [amend me]
| -rw-r--r-- | spec/lib/af83/stored_procedures/clone_schema_with_organisation_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/lib/af83/stored_procedures/clone_schema_with_organisation_spec.rb b/spec/lib/af83/stored_procedures/clone_schema_with_organisation_spec.rb new file mode 100644 index 000000000..8a16f73c6 --- /dev/null +++ b/spec/lib/af83/stored_procedures/clone_schema_with_organisation_spec.rb @@ -0,0 +1,21 @@ +require 'spec_helper' + +RSpec.describe StoredProcedures do + context "clone schema with data" do + before do + seed_schema "source_schema" + end + + context "before cloning source schema is set up correctly w/o target_schema" do + it "with two different organisations" do + expect(Organisation.count).to eq(2) + end + end + end + + private + def seed_schema schema_name + source_org, target_org = 2.times.map{ create :organisation } + + end +end |
