Skip to content

Commit

Permalink
Clean up tests
Browse files Browse the repository at this point in the history
- Fix up deprecation warnings
- add .rspec with --color
- delete the Puppetfile.lock after tests
  • Loading branch information
alex-harvey-z3q committed Mar 28, 2016
1 parent 7ff1ae1 commit fc03f0a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--color
4 changes: 4 additions & 0 deletions spec/action/resolve_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@
end

end

after do
File.delete('features/examples/test/Puppetfile.lock')
end
end
10 changes: 5 additions & 5 deletions spec/source/forge_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@
context "Puppet OS" do
context "3.4.3" do
let(:puppet_version) { "3.4.3" }
it { Forge.client_api_version().should == 1 }
it { expect(Forge.client_api_version()).to eq 1 }
end
context "2.7.13" do
let(:puppet_version) { "2.7.13" }
it { Forge.client_api_version().should == 1 }
it { expect(Forge.client_api_version()).to eq 1 }
end
context "3.6.0" do
it { Forge.client_api_version().should == 3 }
it { expect(Forge.client_api_version()).to eq 3 }
end
end
context "Puppet Enterprise" do
context "3.2.1" do
let(:puppet_version) { "3.4.3 (Puppet Enterprise 3.2.1)" }
it { Forge.client_api_version().should == 3 }
it { expect(Forge.client_api_version()).to eq 3 }
end
context "3.1.3" do
let(:puppet_version) { "3.3.3 (Puppet Enterprise 3.1.3)" }
it { Forge.client_api_version().should == 1 }
it { expect(Forge.client_api_version()).to eq 1 }
end
end
end
Expand Down

0 comments on commit fc03f0a

Please sign in to comment.