Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add sequences to loots & notes factories. #44

Open
wants to merge 1 commit into from

1 participant

@jvennix-r7

Needed these in some specs I was writing. I stubbed them out in my specs, but we should merge this in at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 27, 2013
  1. @jvennix-r7
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 0 deletions.
  1. +5 −0 spec/factories/mdm/loots.rb
  2. +4 −0 spec/factories/mdm/notes.rb
View
5 spec/factories/mdm/loots.rb
@@ -7,5 +7,10 @@
association :workspace, :factory => :mdm_workspace
association :host, :factory => :mdm_host
+ name { generate :mdm_loot_name }
+ end
+
+ sequence :mdm_loot_name do |n|
+ "Mdm::Loot name #{n}"
end
end
View
4 spec/factories/mdm/notes.rb
@@ -7,6 +7,10 @@
association :host, :factory => :mdm_host
association :service, :factory => :mdm_service
+ ntype { generate :mdm_note_ntype }
+ end
+ sequence :mdm_note_ntype do |n|
+ "note.ntype.instance#{n}"
end
end
Something went wrong with that request. Please try again.