spec/unit/ridley/resources/cookbook_resource_spec.rb in ridley-0.8.6 vs spec/unit/ridley/resources/cookbook_resource_spec.rb in ridley-0.9.0
- old
+ new
@@ -4,10 +4,11 @@
let(:client) { double('client', connection: double('connection')) }
subject { described_class.new(client) }
describe "ClassMethods" do
+ subject { described_class }
let(:server_url) { "https://api.opscode.com/organizations/vialstudios" }
let(:client_name) { "reset" }
let(:client_key) { fixtures_path.join("reset.pem") }
let(:client) do
@@ -130,11 +131,11 @@
end
end
end
describe "::versions" do
- let(:cookbook) { "artifact" }
+ let(:cookbook) { "artifact" }
subject { described_class.versions(client, cookbook) }
before(:each) do
stub_request(:get, File.join(server_url, "cookbooks", cookbook)).
to_return(status: 200, body: {
@@ -166,9 +167,17 @@
subject.should have(3).versions
subject.should include("1.0.0")
subject.should include("1.1.0")
subject.should include("1.2.0")
end
+ end
+
+ describe "::upload" do
+ pending
+ end
+
+ describe "::update" do
+ pending
end
end
describe "#download" do
it "downloads each file" do