Skip to content
This repository
Browse code

ruby-1.9 - run same spec in 1.8 and 1.9

  • Loading branch information...
commit 3a89417da725f3f7d0a78a7f6ae76ea8c8d36d73 1 parent 0c9d276
David Chelimsky authored

Showing 1 changed file with 1 addition and 12 deletions. Show diff stats Hide diff stats

  1. +1 12 spec/spec/example/example_group_spec.rb
13 spec/spec/example/example_group_spec.rb
@@ -19,20 +19,9 @@ def self.loaded?; true; end
19 19 @@class_variable = "a class variable"
20 20
21 21 it "can access class variables in examples in Ruby 1.8" do
22   - with_ruby 1.8 do
23   - @@class_variable.should == "a class variable"
24   - end
  22 + @@class_variable.should == "a class variable"
25 23 end
26 24
27   - it "can NOT access class variables in examples in Ruby 1.9" do
28   - with_ruby 1.9 do
29   - lambda do
30   - @@class_variable.should == "a class variable"
31   - end.should raise_error(NameError)
32   - end
33   - end
34   -
35   -
36 25 end
37 26
38 27 class ExampleClassVariablePollutionSpec < ExampleGroup

0 comments on commit 3a89417

Please sign in to comment.
Something went wrong with that request. Please try again.