Skip to content

Commit

Permalink
Fix puppet-neutron rspec test for RSpec >= 3.0.0
Browse files Browse the repository at this point in the history
Since rspec 3.0.0.beta1 (2013-11-07) be_true and be_false
are now renamed to be_truthy and be_falsey.

Closes-bug #1326034
Change-Id: I6ca0d3f7529c6d4596ab10dd9e55157bad9ace86
  • Loading branch information
sbadia committed Jun 3, 2014
1 parent 10abb38 commit 40f98ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/unit/provider/nova_admin_tenant_id_setter/neutron_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def create
it 'should create a resource' do
resource = Puppet::Type::Nova_admin_tenant_id_setter.new(params)
provider = provider_class.new(resource)
expect(provider.exists?).to be_false
expect(provider.exists?).to be_falsey
expect(provider.create).to be_nil
end
end
Expand All @@ -98,7 +98,7 @@ def create
it 'should receive an api error' do
resource = Puppet::Type::Nova_admin_tenant_id_setter.new(params)
provider = provider_class.new(resource)
expect(provider.exists?).to be_false
expect(provider.exists?).to be_falsey
expect { provider.create }.to raise_error KeystoneAPIError, /Unable to find matching tenant/
end
end
Expand All @@ -123,7 +123,7 @@ def create
it 'should receive an api error' do
resource = Puppet::Type::Nova_admin_tenant_id_setter.new(params)
provider = provider_class.new(resource)
expect(provider.exists?).to be_false
expect(provider.exists?).to be_falsey
expect { provider.create }.to raise_error KeystoneAPIError, /Found multiple matches for tenant name/
end
end
Expand All @@ -140,7 +140,7 @@ def create
it 'should receive an authentication error' do
resource = Puppet::Type::Nova_admin_tenant_id_setter.new(params)
provider = provider_class.new(resource)
expect(provider.exists?).to be_false
expect(provider.exists?).to be_falsey
expect { provider.create }.to raise_error KeystoneAPIError
end
end
Expand All @@ -154,7 +154,7 @@ def create
it 'should receive a connection error' do
resource = Puppet::Type::Nova_admin_tenant_id_setter.new(params)
provider = provider_class.new(resource)
expect(provider.exists?).to be_false
expect(provider.exists?).to be_falsey
expect { provider.create }.to raise_error KeystoneConnectionError
end
end
Expand All @@ -168,7 +168,7 @@ def create
it 'should receive a connection error' do
resource = Puppet::Type::Nova_admin_tenant_id_setter.new(params)
provider = provider_class.new(resource)
expect(provider.exists?).to be_false
expect(provider.exists?).to be_falsey
expect { provider.create }.to raise_error KeystoneConnectionError
end
end
Expand Down

0 comments on commit 40f98ee

Please sign in to comment.