Skip to content

Instantly share code, notes, and snippets.

@thatrubylove thatrubylove/example-1.rb
Last active Aug 29, 2015

Embed
What would you like to do?
tdding-patshaughnessys-ask-dont-tell
require 'minitest/autorun'
describe "#lines_after_word(lines, target)" do
let(:file) { File.expand_path("../innisfree.txt", __FILE__) }
let(:lines) { File.readlines(file) }
it "must return an empty array if no lines include the target word" do
lines_after_word(lines, "hola").must_equal []
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.