-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix automatic test prefix attachment to clients and providers. dataci…
- Loading branch information
Martin Fenner
committed
Aug 26, 2018
1 parent
fe38591
commit 51c1763
Showing
7 changed files
with
50 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# require 'rails_helper' | ||
# | ||
# describe ClientPrefix, type: :model, vcr: true do | ||
# pending "add some examples to (or delete) #{__FILE__}" | ||
# end | ||
require 'rails_helper' | ||
|
||
describe ClientPrefix, type: :model do | ||
let(:prefix) { create(:prefix, prefix: "10.5083") } | ||
let(:client_prefix) { create(:client_prefix, prefix: prefix) } | ||
|
||
it "is valid" do | ||
expect(client_prefix.client.name).to eq("My data center") | ||
expect(client_prefix.prefix.prefix).to eq("10.5083") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# require 'rails_helper' | ||
# | ||
# describe ProviderPrefix, type: :model do | ||
# pending "add some examples to (or delete) #{__FILE__}" | ||
# end | ||
require 'rails_helper' | ||
|
||
describe ProviderPrefix, type: :model do | ||
let(:prefix) { create(:prefix, prefix: "10.5083") } | ||
let(:provider_prefix) { create(:provider_prefix, prefix: prefix) } | ||
|
||
it "is valid" do | ||
expect(provider_prefix.provider.name).to eq("My provider") | ||
expect(provider_prefix.prefix.prefix).to eq("10.5083") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters