Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replace remaining FactoryGirl usage with cfoundry fakes.

Bump cfoundry gem dependency.

Change-Id: I52061cc136cccd30c5d2d1a776eb5dbf8d988c74
  • Loading branch information...
commit 43cfeb0a05694891b09b504a1b43ac7122e6c857 1 parent 0fdea3d
Elisabeth Hendrickson and Matthew Boedicker authored
View
2  spec/vmc/cli/start/register_spec.rb
@@ -23,7 +23,7 @@
end
describe '#register' do
- let(:client) { FactoryGirl.build(:client) }
+ let(:client) { fake_client }
let(:output) { StringIO.new }
let(:out) { output.string }
let(:email) { "a@b.com" }
View
8 spec/vmc/cli/user/passwd_spec.rb
@@ -21,14 +21,18 @@
end
describe '#passwd' do
- let(:client) { FactoryGirl.build(:client) }
+ let(:client) { fake_client }
let(:output) { StringIO.new }
let(:out) { output.string }
let(:old_password) { "old" }
let(:new_password) { "password" }
let(:verify_password) { new_password }
let(:score) { :strong }
- let(:user) { FactoryGirl.build(:user) }
+
+ let(:guid) { random_string("my-object-guid") }
+ let(:user_model) { fake_model { attribute :password, :object } }
+ let(:user_object) { user_model.new(guid, client) }
+ let(:user) { user_object.fake(:password => 'foo') }
before do
stub(VMC::CLI).exit { |code| code }
View
2  vmc.gemspec
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency "multi_json", "~> 1.3"
s.add_runtime_dependency "interact", "~> 0.5.0"
- s.add_runtime_dependency "cfoundry", "~> 0.4.16"
+ s.add_runtime_dependency "cfoundry", "~> 0.4.17"
s.add_runtime_dependency "clouseau", "~> 0.0.2"
s.add_runtime_dependency "mothership", "~> 0.4.0"
s.add_runtime_dependency "manifests-vmc-plugin", "~> 0.4.19"
Please sign in to comment.
Something went wrong with that request. Please try again.