title: In rspec, why can't I use be_false etc in helper classes?
body: <p>When using a helper class with an rspec test, I can't see to use the <code>.should be_false</code> idiom.  It's okay in a function defined in a helper .rb file, but when it's within a class the <code>be_false</code> symbol is not found.  Example below -- why doesn't this work?  How can I use <code>be_false</code> et al in a helper?</p>
  
  <p>It seems possible that it's intentional that assertions like this only work in tests themselves.  I have helpers which can fail due to eg. network comms problems which are actually bona-fide test failures since the network comms my helpers use are part of the system under test.  How should I make my tests fail gracefully inside a helper class?</p>
  
  <p><strong>Results</strong></p>
  
  <pre><code>$ spec ./test.rb 
  helper_foo 1
  helper_foo 2
  helper_foo 3
  FunctionFoo 1
  F
  
  1)
  NameError in 'my_test should test that helper classes can use should be_false etc'
  undefined local variable or method `be_false' for #&lt;HelperFoo:0x2b265f7adc98&gt;
  ./helper.rb:13:in `FunctionFoo'
  ./test.rb:13:
  
  Finished in 0.004536 seconds
  
  1 example, 1 failure
  </code></pre>
  
  <p><strong>test.rb</strong></p>
  
  <pre><code>require "helper.rb"
  
  describe "my_test" do
      it "should test that helper classes can use should be_false etc" do
  
          (1 == 1).should be_true
          (2 == 1).should be_false
  
          helper_foo()
  
          instance = HelperFoo.new()
          instance.FunctionFoo
      end
    end
  </code></pre>
  
  <p><strong>helper.rb</strong></p>
  
  <pre><code>def helper_foo
      puts "helper_foo 1"
      (1==2).should be_false
      puts "helper_foo 2"
      (2==2).should be_true
      puts "helper_foo 3"
  end
  
  class HelperFoo
      def FunctionFoo
          puts "FunctionFoo 1"
          (1==2).should be_false
          puts "FunctionFoo 2"
          (2==2).should be_true
          puts "FunctionFoo 3"
      end
  end
  </code></pre>