Skip to content

Instantly share code, notes, and snippets.

@ajlanghorn
Last active Aug 29, 2015
Embed
What would you like to do?
spec/bob-walker.rb
!/usr/bin/env/ruby
loop do
puts "beard"
puts "beer"
puts "pie"
case ARGV[0]
when "-s"
puts "rugby"
puts "cricket"
when "-x"
puts "mince pies"
puts "reindeer"
end
end
require 'minitest/autorun'
require_relative '../bob-walker'
describe "bob-walker" do
before do
@something = something
end
it "returns beard" do
.must_include "beard"
end
it "returns beer" do
.must_include "beer"
end
it "returns pie" do
.must_include "pie"
end
describe "sports-mode" do
it "returns rugby" do
.must_include "rugby"
end
it "returns cricket" do
.must_include "cricket"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment