diff options
| author | Xinhui | 2016-11-15 16:39:26 +0100 |
|---|---|---|
| committer | Xinhui | 2016-11-15 16:39:30 +0100 |
| commit | aa6a6f3aabb621e8697cc91bb9760d086678ca89 (patch) | |
| tree | 83cd246ce0ed657746f50a5015c71159104e46b3 /spec | |
| parent | cddd627eacd1a0bf252494fd7394438f958d53ab (diff) | |
| download | chouette-core-aa6a6f3aabb621e8697cc91bb9760d086678ca89.tar.bz2 | |
Refactoring CleanUpResult as ActiveRecord model
Refs #1933
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/factories/clean_up_results.rb | 9 | ||||
| -rw-r--r-- | spec/models/clean_up_result_spec.rb | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/spec/factories/clean_up_results.rb b/spec/factories/clean_up_results.rb new file mode 100644 index 000000000..6d3818eff --- /dev/null +++ b/spec/factories/clean_up_results.rb @@ -0,0 +1,9 @@ +FactoryGirl.define do + factory :clean_up_result do + criticity 1 +message_key "MyString" +message_attributs "" +cleanup nil + end + +end diff --git a/spec/models/clean_up_result_spec.rb b/spec/models/clean_up_result_spec.rb new file mode 100644 index 000000000..5b1efe689 --- /dev/null +++ b/spec/models/clean_up_result_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe CleanUpResult, :type => :model do + it { should belong_to(:clean_up) } +end |
