Last active
August 29, 2015 14:07
-
-
Save ajlanghorn/91dd1cb7444e604ebd18 to your computer and use it in GitHub Desktop.
spec/bob-walker.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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