summaryrefslogtreecommitdiffstats
path: root/spec/unit/provider/user
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2011-05-16 16:10:21 -0700
committerMatt Robinson <matt@puppetlabs.com>2011-05-17 09:57:26 -0700
commit9da1454e71b8330e929ac5616eefa44388c90832 (patch)
tree8055105961771b9b95a4b888c0599b26000603d6 /spec/unit/provider/user
parent47e4ac948504aa6fbd3487ca1b1e19f3c8884a79 (diff)
downloadpuppet-9da1454e71b8330e929ac5616eefa44388c90832.tar.gz
puppet-9da1454e71b8330e929ac5616eefa44388c90832.tar.xz
puppet-9da1454e71b8330e929ac5616eefa44388c90832.zip
(#7507) Add ability to filter Ruby 1.9 spec failures
By running: rspec spec --tag ~@fails_on_ruby_1.9.2 We can now just run the specs that pass under Ruby 1.9. Obviously in the long term we want to have all the specs passing, but until then we need notification when we regress. From now on new code will be required to pass under Ruby 1.9, and Jenkins will give us email notification if it doesn't or if we break something that was already working. Reviewed-by: Daniel Pittman <daniel@puppetlabs.com>
Diffstat (limited to 'spec/unit/provider/user')
-rwxr-xr-xspec/unit/provider/user/user_role_add_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/user/user_role_add_spec.rb b/spec/unit/provider/user/user_role_add_spec.rb
index b17ba68c8..5f2fc306e 100755
--- a/spec/unit/provider/user/user_role_add_spec.rb
+++ b/spec/unit/provider/user/user_role_add_spec.rb
@@ -40,7 +40,7 @@ describe provider_class do
end
end
- describe "when calling transition" do
+ describe "when calling transition", :'fails_on_ruby_1.9.2' => true do
it "should return the type set to whatever is passed in" do
@provider.expects(:command).with(:modify).returns("foomod")
@provider.transition("bar").include?("type=bar")
@@ -120,7 +120,7 @@ describe provider_class do
@provider.expects(:execute).with { |args| args.include?("-o") }
end
- it "should add -o when the user is being created" do
+ it "should add -o when the user is being created", :'fails_on_ruby_1.9.2' => true do
@provider.stubs(:password=)
@provider.create
end