title: Why is rspec not seeing these class methods?
body: <p>If I have ruby file <code>maze.rb</code> with</p>
  
  <pre><code>class Maze
    def self.x
    end 
    def self.y
    end 
  end
  </code></pre>
  
  <p>and a rspec file with</p>
  
  <pre><code>require 'maze'
  
  describe "A Maze" do
    it "exists" do
      expect(Maze).to be
    end 
    it " has x-y dimension" do
      expect(Maze.x).to be
      expect(Maze.y).to be
    end 
  end
  </code></pre>
  
  <p>Why does the test for Maze.x fail ?</p>
  
  <p>Failures:</p>
  
  <pre><code>1) A Maze  has x-y dimension
     Failure/Error: expect(Maze.x).to be
       expected nil to evaluate to true
     # ./spec/maze_spec.rb:8:in `block (2 levels) in &lt;top (required)&gt;'
  </code></pre>