Skip to content

Commit

Permalink
Add factories for the Switch and HostSwitch models
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed May 14, 2018
1 parent 85b25a1 commit 42b3583
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/factories/host_switch.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FactoryGirl.define do
factory :host_switch
end
4 changes: 4 additions & 0 deletions spec/factories/switch.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FactoryGirl.define do
factory :switch
factory :switch_vmware, :class => 'ManageIQ::Providers::Vmware::InfraManager::HostVirtualSwitch', :parent => :switch
end

0 comments on commit 42b3583

Please sign in to comment.