San Francisco
March 13, 2014

Test-Driven Development with RSpec

While we covered writing high-level behavior tests last week, we'll dive deeper this week and explore how we can use rspec and unit-level testing to ensure our code behaves as we expect.

describe 'RailsSchool Lesson' do
  let(:lesson) { stub_model(:lesson) }

  context 'online' do
    it "shows a google hangout" do
      expect(lesson.whiteboard).to include("Google Hangout")
    end
  end

  context 'in person' do
    it "lists a location" do
      expect(lesson.location).to include("Coshx Labs")
    end
  end
end

```



2:30pm Pacific - 4:30pm Pacific on March 13, 2014 at Coshx Labs
8 students were there

Whiteboard

Please, sign in to see the Whiteboard