diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-02-02 16:53:48 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-02-23 11:20:16 +0000 |
commit | d4facb7d6ecaa12060c7d3b90d8a2d825398c7a4 (patch) | |
tree | fb4e0dc6c2e71ebea809d4f1f39c32402d12099a /spec/models | |
parent | 8057a1da951088c0b0b69fc2f65691ac1685ec9b (diff) |
Refactor massive import method into smaller instance level methods
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/public_body_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb index 23f3aa5d6..e43c3eb51 100644 --- a/spec/models/public_body_spec.rb +++ b/spec/models/public_body_spec.rb @@ -469,8 +469,8 @@ describe PublicBody, " when loading CSV files" do errors, notes = PublicBody.import_csv(new_tags_file, 'fake', 'replace', false, 'someadmin') # false means real run # Check tags were added successfully - PublicBody.find_by_name('North West Fake Authority').tag_array_for_search.should == ['aTag'] - PublicBody.find_by_name('Scottish Fake Authority').tag_array_for_search.should == ['aTag'] + PublicBody.find_by_name('North West Fake Authority').tag_array_for_search.should == ['aTag', 'fake'] + PublicBody.find_by_name('Scottish Fake Authority').tag_array_for_search.should == ['aTag', 'fake'] PublicBody.find_by_name('Fake Authority of Northern Ireland').tag_array_for_search.should == ['aTag', 'fake'] end |