Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ruby-1.9 - run same spec in 1.8 and 1.9

  • Loading branch information...
commit 3a89417da725f3f7d0a78a7f6ae76ea8c8d36d73 1 parent 0c9d276
@dchelimsky authored
Showing with 1 addition and 12 deletions.
  1. +1 −12 spec/spec/example/example_group_spec.rb
View
13 spec/spec/example/example_group_spec.rb
@@ -19,20 +19,9 @@ def self.loaded?; true; end
@@class_variable = "a class variable"
it "can access class variables in examples in Ruby 1.8" do
- with_ruby 1.8 do
- @@class_variable.should == "a class variable"
- end
+ @@class_variable.should == "a class variable"
end
- it "can NOT access class variables in examples in Ruby 1.9" do
- with_ruby 1.9 do
- lambda do
- @@class_variable.should == "a class variable"
- end.should raise_error(NameError)
- end
- end
-
-
end
class ExampleClassVariablePollutionSpec < ExampleGroup
Please sign in to comment.
Something went wrong with that request. Please try again.