title: Struggling to write code and tests for my Tube System program, TDD using Rspec and Ruby
body: <p>I am writing a small program for a train system. </p>
  
  <p>I have a passenger, coach, train and station class (and thus, a spec test for each).</p>
  
  <p><strong>My test for my passenger class is as such:</strong> </p>
  
  <pre><code>let (:passenger) {Passenger.new}
  
    it "should not be touched in to a station when initialized" do
      expect(passenger.touchedin?).to be false
    end
  
    it "should be able to enter coach" do
      coach = Coach.new
      passenger.enter(coach)
      expect{coach.to receive(:enter)}
    end
  
    it "should be able to alight coach" do
      coach = Coach.new
      passenger.alight(coach)
      expect{coach.to receive(:alight)}
    end
  
    it "should be able to touch into station" do
      station = Station.new
      passenger.touchin(station)
      expect{station.to receive(:touchin)}
    end
  
    it "should be able to touch out of station" do
      station = Station.new
      passenger.touchout(station)
      expect{station.to receive(:touchout)}
    end
  end
  </code></pre>
  
  <p><strong>And my passenger class is like this (at the moment :p):</strong></p>
  
  <pre><code>class Passenger
  
    def initialize
      @touchedin = false
    end
  
    def enter(coach)
  
    end
  
    def touchedin?
      @touchedin
    end
  
    def alight(coach)
  
    end
  
    def touchin(station)
  
    end
  
    def touchout(station)
  
    end
  end
  </code></pre>
  
  <p>I am unsure how to satisfy my tests, if my tests are even correct in the first place.</p>
  
  <p>Any help is really appreciated!</p>