1 require File.dirname(__FILE__) + '/../../spec_helper'
5 class ExampleGroupSubclass < ExampleGroup
7 attr_accessor :examples_ran
10 @@klass_variable_set = true
14 @instance_variable = :hello
18 self.class.examples_ran = true
21 it "should have access to instance variables" do
22 @instance_variable.should == :hello
25 it "should have access to class variables" do
26 @@klass_variable_set.should == true
29 it "should have access to constants" do
30 CONSTANT.should == :foobar
33 it "should have access to methods defined in the Example Group" do
42 describe ExampleGroupSubclass do
44 ExampleGroupSubclass.examples_ran.should be_true