diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-09-25 17:06:28 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-09-25 17:06:28 +0100 |
commit | 73648516a94b3e054aba627ddea15108ce6ec0c9 (patch) | |
tree | 755d97eddd6d6b192889dadbbac905e3681ec0e6 /spec/models | |
parent | a9f3876005f718b9a1cc850bed91c86b6fd9efb7 (diff) |
Create module to clarify what code is just for migrating from files.
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/public_body_category_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/public_body_category_spec.rb b/spec/models/public_body_category_spec.rb index b7ef63ac3..3f6fbe5ec 100644 --- a/spec/models/public_body_category_spec.rb +++ b/spec/models/public_body_category_spec.rb @@ -45,9 +45,9 @@ describe PublicBodyCategory do context "requesting data" do - it 'should call load_categories if categories are not already loaded' do + it 'should migrate categories if categories are not already loaded' do PublicBodyCategory.stub!(:count).and_return(0) - PublicBodyCategory.should_receive(:load_categories) + CategoryAndHeadingMigrator.should_receive(:migrate_categories_and_headings) PublicBodyCategory::get() end |