Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
Updated provisioning profile tests to support new valid? method
Browse files Browse the repository at this point in the history
  • Loading branch information
KrauseFx committed Jun 27, 2015
1 parent e512763 commit f15bbbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
end
end

describe "#in_house?", now: true do
describe "#in_house?" do
it 'returns false for normal accounts' do
expect(subject.in_house?).to eq(false)
end
Expand Down
6 changes: 4 additions & 2 deletions spec/provisioning_profile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@

describe '#valid?' do
it "Valid profile" do
expect(Spaceship::ProvisioningProfile.all.first.valid?).to eq(true)
p = Spaceship::ProvisioningProfile.all.last
expect(p).to receive(:certificate_valid?).and_return(true)
expect(p.valid?).to eq(true)
end

it "Invalid profile" do
Expand Down Expand Up @@ -168,7 +170,7 @@
profile.repair!
end

describe "Different Environments", now: true do
describe "Different Environments" do
it "Development" do
profile = Spaceship::ProvisioningProfile::Development.all.first
devices = ["RK3285QATH", "E687498679", "5YTNZ5A9RV", "VCD3RH54BK", "VA3Z744A8R", "T5VFWSCC2Z", "GD25LDGN99", "XJXGVS46MW", "L4378H292Z", "9T5RA84V77", "S4227Y42V5", "LEL449RZER", "WXQ7V239BE"]
Expand Down

0 comments on commit f15bbbc

Please sign in to comment.